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

Function condition_true

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

Source from the content-addressed store, hash-verified

56
57 #[test]
58 fn condition_true() {
59 let mut parser = Statement::new().unwrap();
60 let result = parser.parse_and_execute("[if(true, 'left', 'right')]", &Context::new()).unwrap();
61 assert_eq!(result, "left");
62 }
63
64 #[test]
65 fn condition_false() {

Callers

nothing calls this directly

Calls 2

parse_and_executeMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected