(t *testing.T)
| 504 | } |
| 505 | |
| 506 | func TestDynamicBlockEval(t *testing.T) { |
| 507 | db := &dynamicBlock{ |
| 508 | expr: interpreter.NewConstValue(1, types.IntOne), |
| 509 | slotActivationPool: &sync.Pool{ |
| 510 | New: func() any { |
| 511 | return &dynamicSlotActivation{} |
| 512 | }, |
| 513 | }, |
| 514 | } |
| 515 | res := db.Eval(cel.NoVars()) |
| 516 | if res.Equal(types.IntOne) != types.True { |
| 517 | t.Errorf("db.Eval() = %v, wanted 1", res) |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | func TestConstantBlockEval(t *testing.T) { |
| 522 | cb := &constantBlock{ |
nothing calls this directly
no test coverage detected