MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_load_config_file_toml

Function test_load_config_file_toml

load_config/src/lib.rs:108–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107 #[test]
108 fn test_load_config_file_toml() {
109 let temp_dir = TempDir::new().unwrap();
110 let (_, toml_path) = setup_test_files(&temp_dir);
111
112 let figment = Figment::new();
113 let result = load_config_file(&toml_path, false, figment);
114
115 assert_eq!(
116 result.extract_inner::<String>("test").unwrap(),
117 "toml_value"
118 );
119 }
120
121 #[test]
122 fn test_load_config_in_dir() {

Callers

nothing calls this directly

Calls 2

setup_test_filesFunction · 0.85
load_config_fileFunction · 0.85

Tested by

no test coverage detected