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

Function TestOptimizeOr_IdentityFalseLeft

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

Source from the content-addressed store, hash-verified

246}
247
248func TestOptimizeOr_IdentityFalseLeft(t *testing.T) {
249 node := or2(boolLit(false), expr("github.event_name == 'issues'"))
250 assertRender(t, "github.event_name == 'issues'", node, "false || A → A")
251}
252
253func TestOptimizeOr_IdentityFalseBoth(t *testing.T) {
254 assertRender(t, "false", or2(boolLit(false), boolLit(false)), "false || false → false")

Callers

nothing calls this directly

Calls 4

or2Function · 0.85
boolLitFunction · 0.85
exprFunction · 0.85
assertRenderFunction · 0.85

Tested by

no test coverage detected