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

Function TestOptimizeNot_QuadrupleNegation

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

Source from the content-addressed store, hash-verified

142}
143
144func TestOptimizeNot_QuadrupleNegation(t *testing.T) {
145 // !!!!X → X
146 inner := prop("github.event_name")
147 node := not1(not1(not1(not1(inner))))
148 assertRender(t, "github.event_name", node, "!!!!X → X")
149}
150
151func TestOptimizeNot_DoubleNegation_FunctionCall(t *testing.T) {
152 // !!contains(…) → contains(…) — safe because contains is not a status function

Callers

nothing calls this directly

Calls 3

propFunction · 0.85
not1Function · 0.85
assertRenderFunction · 0.85

Tested by

no test coverage detected