()
| 372 | |
| 373 | #[test] |
| 374 | fn test_registry_value_present() { |
| 375 | let input_json: &str = r#" |
| 376 | { |
| 377 | "keyPath": "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion", |
| 378 | "valueName": "ProgramFilesPath", |
| 379 | "_exist": true |
| 380 | } |
| 381 | "#; |
| 382 | |
| 383 | let config: Registry = serde_json::from_str(input_json).unwrap(); |
| 384 | let json = config_test(&config).unwrap(); |
| 385 | assert_eq!(json, r#"{"$id":"https://developer.microsoft.com/json-schemas/windows/registry/20230303/Microsoft.Windows.Registry.schema.json","keyPath":"HKLM\\Software\\Microsoft\\Windows\\CurrentVersion","valueName":"ProgramFilesPath","valueData":{"ExpandString":"%ProgramFiles%"},"_exist":true,"_inDesiredState":true}"#); |
| 386 | } |
| 387 | |
| 388 | #[test] |
| 389 | fn test_registry_value_absent() { |
nothing calls this directly
no test coverage detected