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

Function TestOptimizeAnd_IdentityTrueLeft

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

Source from the content-addressed store, hash-verified

169}
170
171func TestOptimizeAnd_IdentityTrueLeft(t *testing.T) {
172 node := and2(boolLit(true), expr("github.event_name == 'issues'"))
173 assertRender(t, "github.event_name == 'issues'", node, "true && A → A")
174}
175
176func TestOptimizeAnd_IdentityTrueBoth(t *testing.T) {
177 node := and2(boolLit(true), boolLit(true))

Callers

nothing calls this directly

Calls 4

and2Function · 0.85
boolLitFunction · 0.85
exprFunction · 0.85
assertRenderFunction · 0.85

Tested by

no test coverage detected