(t *testing.T)
| 520 | } |
| 521 | |
| 522 | func TestConstantBlockEval(t *testing.T) { |
| 523 | cb := &constantBlock{ |
| 524 | expr: interpreter.NewConstValue(2, types.IntOne), |
| 525 | } |
| 526 | res := cb.Eval(cel.NoVars()) |
| 527 | if res.Equal(types.IntOne) != types.True { |
| 528 | t.Errorf("cb.Eval() = %v, wanted 1", res) |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | func BenchmarkBlockEval(b *testing.B) { |
| 533 | fac := ast.NewExprFactory() |
nothing calls this directly
no test coverage detected