(t *testing.T)
| 1061 | } |
| 1062 | |
| 1063 | func TestCollectAndTerms_AndNode(t *testing.T) { |
| 1064 | // collectAndTerms flattens A && (B && C). |
| 1065 | a := cmp(prop("a"), "==", str("1")) |
| 1066 | b := cmp(prop("b"), "==", str("2")) |
| 1067 | c := cmp(prop("c"), "==", str("3")) |
| 1068 | terms := collectAndTerms(and2(a, and2(b, c))) |
| 1069 | require.Len(t, terms, 3, "should collect 3 terms from nested AND") |
| 1070 | } |
| 1071 | |
| 1072 | func TestRebuildAndChain_Single(t *testing.T) { |
| 1073 | a := cmp(prop("a"), "==", str("1")) |
nothing calls this directly
no test coverage detected