MCPcopy Create free account
hub / github.com/ankddev/envfetch / test_delete_nonexistent_variable_global

Function test_delete_nonexistent_variable_global

src/variables.rs:178–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176
177 #[test]
178 fn test_delete_nonexistent_variable_global() {
179 let result = delete_variable("NONEXISTENT_GLOBAL_VAR".to_string(), true);
180 match result {
181 Ok(_) => {}
182 Err(ErrorKind::CannotDeleteVariableGlobally(_)) => {
183 // Test passes if we get permission error on non-admin run
184 }
185 Err(e) => panic!("Unexpected error: {:?}", e),
186 }
187 }
188}

Callers

nothing calls this directly

Calls 1

delete_variableFunction · 0.85

Tested by

no test coverage detected