(t *testing.T)
| 2557 | } |
| 2558 | |
| 2559 | func TestV2Adapter(t *testing.T) { |
| 2560 | legacy := &testLegacyInterpretable{id: 42} |
| 2561 | adapted := adaptToV2(legacy) |
| 2562 | if adapted.ID() != 42 { |
| 2563 | t.Errorf("adapted.ID() = %d, wanted 42", adapted.ID()) |
| 2564 | } |
| 2565 | frame := mustNewExecutionFrame(t, EmptyActivation()) |
| 2566 | defer frame.Close() |
| 2567 | val := adapted.Exec(frame) |
| 2568 | if val.Equal(types.IntOne) != types.True { |
| 2569 | t.Errorf("adapted.Exec() = %v, wanted 1", val) |
| 2570 | } |
| 2571 | } |
| 2572 | |
| 2573 | func TestInterpretableArgs(t *testing.T) { |
| 2574 | tests := []struct { |
nothing calls this directly
no test coverage detected