()
| 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 | } |
nothing calls this directly
no test coverage detected