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

Function condition_false

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

Source from the content-addressed store, hash-verified

63
64 #[test]
65 fn condition_false() {
66 let mut parser = Statement::new().unwrap();
67 let result = parser.parse_and_execute("[if(false, 'left', 'right')]", &Context::new()).unwrap();
68 assert_eq!(result, "right");
69 }
70}

Callers

nothing calls this directly

Calls 2

parse_and_executeMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected