MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test_load_from_path

Function test_load_from_path

src/project_config/tests.rs:123–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122#[test]
123fn test_load_from_path() {
124 let temp_dir = TempDir::new().unwrap();
125 let config_path = temp_dir.path().join("codspeed.yaml");
126
127 fs::write(
128 &config_path,
129 r#"
130options:
131 warmup-time: 5s
132"#,
133 )
134 .unwrap();
135
136 let config = ProjectConfig::load_from_path(&config_path).unwrap();
137 assert!(config.options.is_some());
138}
139
140#[test]
141fn test_load_from_path_invalid_yaml() {

Callers

nothing calls this directly

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected