(t *testing.T)
| 1076 | } |
| 1077 | |
| 1078 | func 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 | |
| 1085 | func TestRebuildAndChain_Three(t *testing.T) { |
| 1086 | a := cmp(prop("a"), "==", str("1")) |
nothing calls this directly
no test coverage detected