MCPcopy Create free account
hub / github.com/github/gh-aw / TestOptimizeNot_TrueLiteral

Function TestOptimizeNot_TrueLiteral

pkg/workflow/expression_optimizer_test.go:108–110  ·  view source on GitHub ↗

--------------------------------------------------------------------------- NOT constant folding ---------------------------------------------------------------------------

(t *testing.T)

Source from the content-addressed store, hash-verified

106// ---------------------------------------------------------------------------
107
108func TestOptimizeNot_TrueLiteral(t *testing.T) {
109 assertRender(t, "false", not1(boolLit(true)), "!true → false")
110}
111
112func TestOptimizeNot_FalseLiteral(t *testing.T) {
113 assertRender(t, "true", not1(boolLit(false)), "!false → true")

Callers

nothing calls this directly

Calls 3

assertRenderFunction · 0.85
not1Function · 0.85
boolLitFunction · 0.85

Tested by

no test coverage detected