(t *testing.T)
| 2814 | } |
| 2815 | |
| 2816 | func TestV2Adapter(t *testing.T) { |
| 2817 | legacy := &testLegacyInterpretable{id: 42} |
| 2818 | adapted := adaptToV2(legacy) |
| 2819 | if adapted.ID() != 42 { |
| 2820 | t.Errorf("adapted.ID() = %d, wanted 42", adapted.ID()) |
| 2821 | } |
| 2822 | frame := mustNewExecutionFrame(t, EmptyActivation()) |
| 2823 | defer frame.Close() |
| 2824 | val := adapted.Exec(frame) |
| 2825 | if val.Equal(types.IntOne) != types.True { |
| 2826 | t.Errorf("adapted.Exec() = %v, wanted 1", val) |
| 2827 | } |
| 2828 | } |
| 2829 | |
| 2830 | func TestInterpretableArgs(t *testing.T) { |
| 2831 | tests := []struct { |
nothing calls this directly
no test coverage detected