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

Function TestRebuildAndChain_Two

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

Source from the content-addressed store, hash-verified

1076}
1077
1078func TestRebuildAndChain_Two(t *testing.T) {
1079 a := cmp(prop("a"), "==", str("1"))
1080 b := cmp(prop("b"), "==", str("2"))
1081 result := rebuildAndChain([]ConditionNode{a, b})
1082 assert.Equal(t, "a == '1' && b == '2'", result.Render(), "two terms rebuild as binary AND")
1083}
1084
1085func TestRebuildAndChain_Three(t *testing.T) {
1086 a := cmp(prop("a"), "==", str("1"))

Callers

nothing calls this directly

Calls 5

cmpFunction · 0.85
propFunction · 0.85
strFunction · 0.85
rebuildAndChainFunction · 0.85
RenderMethod · 0.65

Tested by

no test coverage detected