(t *testing.T)
| 2671 | } |
| 2672 | |
| 2673 | func TestObservableInterpretable(t *testing.T) { |
| 2674 | obsInt := &ObservableInterpretable{InterpretableV2: NewConstValue(12, types.True)} |
| 2675 | if obsInt.ID() != 12 { |
| 2676 | t.Errorf("obsInt.ID() = %d, wanted 12", obsInt.ID()) |
| 2677 | } |
| 2678 | res := obsInt.Eval(EmptyActivation()) |
| 2679 | if res.Equal(types.True) != types.True { |
| 2680 | t.Errorf("obsInt.Eval() = %v, wanted true", res) |
| 2681 | } |
| 2682 | } |
| 2683 | |
| 2684 | type testLegacyInterpretable struct { |
| 2685 | id int64 |
nothing calls this directly
no test coverage detected