summaryrefslogtreecommitdiff
path: root/tests/secondary_funcs.rs
blob: 566af1a697681b3f45e008c18da7b29dd48a4a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// use mesk::cfg::config::Config;
// use toml;

/*
fn create_test_config(temp_dir_path: &str) -> Config {
    /*
    #[derive(Deserialize, Debug, Clone)]
    pub struct Config {
        pub repo: RepoConfig,
        pub paths: PathConfig,
        ...
    }

    #[derive(Deserialize, Debug, Clone)]
    pub struct RepoConfig {
        pub repo_url: String,
    }

    #[derive(Deserialize, Debug, Clone)]
    pub struct PathConfig {
        pub cache_dir: String,
        ...
    }
    */
    let cfg = Config::default().unwrap();
    assert!(toml::to_string(&cfg).is_ok());
    cfg
}
*/