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

Function test_delete_variable

src/variables.rs:80–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79 #[test]
80 fn test_delete_variable() {
81 unsafe { env::set_var("TEST_DELETE_VAR", "test_value") };
82 let result = delete_variable("TEST_DELETE_VAR".to_string(), false);
83 assert!(result.is_ok());
84 assert!(env::var("TEST_DELETE_VAR").is_err());
85 }
86
87 #[test]
88 fn test_set_variable_empty_value() {

Callers

nothing calls this directly

Calls 1

delete_variableFunction · 0.85

Tested by

no test coverage detected