(t *testing.T)
| 130 | } |
| 131 | } |
| 132 | func TestContainEval(t *testing.T) { |
| 133 | testContainEval(t, "eval() && a && b && c", true) |
| 134 | testContainEval(t, "eval) && a && b && c", false) |
| 135 | testContainEval(t, "eval)( && a && b && c", false) |
| 136 | testContainEval(t, "eval(c * (a + b)) && a && b && c", true) |
| 137 | testContainEval(t, "xeval() && a && b && c", false) |
| 138 | } |
| 139 | |
| 140 | func testReplaceEval(t *testing.T, s string, rule string, res string) { |
| 141 | t.Helper() |
nothing calls this directly
no test coverage detected
searching dependent graphs…