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

Function TestRebuildAndChain_Single

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

Source from the content-addressed store, hash-verified

1070}
1071
1072func TestRebuildAndChain_Single(t *testing.T) {
1073 a := cmp(prop("a"), "==", str("1"))
1074 result := rebuildAndChain([]ConditionNode{a})
1075 assert.Equal(t, "a == '1'", result.Render(), "single term rebuilds without AND")
1076}
1077
1078func TestRebuildAndChain_Two(t *testing.T) {
1079 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