You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: list.rs
    path of file: ./repos/fluvio/crates/fluvio-sc/src/services/public_api/smartmodule
    
    the code of the file until where you have to start completion: use std::io::{Error, ErrorKind};
use std::fmt::Debug;

use anyhow::Result;
us
    
    async fn test_sm_search() {
        let root_auth = RootAuthContext {};

        let pkg = SmartModulePackage {
            name: "sm2".to_string(),
            group: "group".to_string(),
            version: FluvioSemVersion::parse("0.1.0").unwrap(),
            api_version: FluvioSemVersion::parse("0.1.0").unwrap(),
            ..Default::default()
        };

        assert_ne!(pkg.store_id(), "sm2");

        let test_data = vec![
            SmartModuleTest::with_spec("sm1", SmartModuleSpec::default()),
            SmartModuleTest::with_spec(
                pkg.store_id(),
                SmartModuleSpec {
                    meta: Some(SmartModuleMetadata {
                        package: pkg,
                        ..Default::default()
                    }),
                    ..Default::default()
                },
            ),
        ];

        let local_sm_store = TestSmartModuleStore::default();
        _ = local_sm_store.sync_all(test_data).await;
        let sm_ctx = StoreContext::new_with_store(Arc::new(local_sm_store));
        assert_eq!(sm_ctx.store().read().await.len(), 2);
        assert_eq!(
            fetch_smart_modules(vec![], false, &root_auth, &sm_ctx)
                .await
                .expect("search")
                .inner()
                .len(),
            2
        );
        assert_eq!(
            fetch_smart_modules(vec!["test".to_owned().into()], false, &root_auth, &sm_ctx)
                .await
                .expect("search")
                .inner()
                .len(),
            0
        );

        assert_eq!(
            fetch_smart_modules(vec!["sm1".to_owned().into()], false, &root_auth, &sm_ctx)
                .await
                .expect("search")
                .inner()
                .len(),
            1
        );

        // no matching
        assert_eq!(
            fetch_smart_modules(vec!["sm2".to_owned().into()], false, &root_auth, &sm_ctx)
                .await
                .expect("search")
                .inner()
                .len(),
            1
        );
    }