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

Function TestOptimizeAnd_TrueAndFalse

pkg/workflow/expression_optimizer_test.go:199–201  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

197}
198
199func TestOptimizeAnd_TrueAndFalse(t *testing.T) {
200 assertRender(t, "false", and2(boolLit(true), boolLit(false)), "true && false → false (annihilation beats identity)")
201}
202
203// ---------------------------------------------------------------------------
204// AND – idempotent law (A && A → A)

Callers

nothing calls this directly

Calls 3

assertRenderFunction · 0.85
and2Function · 0.85
boolLitFunction · 0.85

Tested by

no test coverage detected