MCPcopy Create free account
hub / github.com/PowerShell/DSC / invalid_condition

Function invalid_condition

lib/dsc-lib/src/functions/if.rs:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50 #[test]
51 fn invalid_condition() {
52 let mut parser = Statement::new().unwrap();
53 let result = parser.parse_and_execute("[if('PATH', 1 , 2)]", &Context::new());
54 assert!(result.is_err());
55 }
56
57 #[test]
58 fn condition_true() {

Callers

nothing calls this directly

Calls 2

parse_and_executeMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected