From 068eea55e0612184151461e64633b3dc18e53490 Mon Sep 17 00:00:00 2001 From: Namilskyy Date: Mon, 1 Dec 2025 14:06:10 +0300 Subject: Implemented test suite, fixed some issues and added more modular structure into .woodpecker.yaml --- tests/secondary_funcs.rs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/secondary_funcs.rs (limited to 'tests/secondary_funcs.rs') diff --git a/tests/secondary_funcs.rs b/tests/secondary_funcs.rs new file mode 100644 index 0000000..84034d8 --- /dev/null +++ b/tests/secondary_funcs.rs @@ -0,0 +1,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 +} +*/ \ No newline at end of file -- cgit v1.2.3