(t *testing.T, s string, res bool)
| 123 | } |
| 124 | |
| 125 | func testContainEval(t *testing.T, s string, res bool) { |
| 126 | t.Helper() |
| 127 | myRes := HasEval(s) |
| 128 | if myRes != res { |
| 129 | t.Errorf("%s: %t, supposed to be %t", s, myRes, res) |
| 130 | } |
| 131 | } |
| 132 | func TestContainEval(t *testing.T) { |
| 133 | testContainEval(t, "eval() && a && b && c", true) |
| 134 | testContainEval(t, "eval) && a && b && c", false) |
no test coverage detected
searching dependent graphs…