TestClassify_UnitCase exercises lifting a unit-case variant returned from the guest. The wrapper struct must be zero-sized and the type switch on the Go side must accept it as the variant interface.
(t *testing.T)
| 8 | // from the guest. The wrapper struct must be zero-sized and the type |
| 9 | // switch on the Go side must accept it as the variant interface. |
| 10 | func TestClassify_UnitCase(t *testing.T) { |
| 11 | ins := newInstance(t) |
| 12 | |
| 13 | got := ins.Classify(t.Context(), "email") |
| 14 | if _, ok := got.(EntityEmail); !ok { |
| 15 | t.Fatalf("Classify(\"email\") = %T, want EntityEmail", got) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | // TestClassify_PayloadCase exercises lifting a payload-bearing case |
| 20 | // where the payload is a primitive — the wrapper carries it in `Value`. |
nothing calls this directly
no test coverage detected