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

Function TestOptimizeOr_FalseOrTrue

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

Source from the content-addressed store, hash-verified

273}
274
275func TestOptimizeOr_FalseOrTrue(t *testing.T) {
276 assertRender(t, "true", or2(boolLit(false), boolLit(true)), "false || true → true")
277}
278
279// ---------------------------------------------------------------------------
280// OR – idempotent law (A || A → A)

Callers

nothing calls this directly

Calls 3

assertRenderFunction · 0.85
or2Function · 0.85
boolLitFunction · 0.85

Tested by

no test coverage detected