(value any)
| 1632 | } |
| 1633 | |
| 1634 | func (a *recordingAdapter) NativeToValue(value any) ref.Val { |
| 1635 | if _, ok := value.(unregisteredNativeStruct); ok { |
| 1636 | a.saw = true |
| 1637 | return types.String("from-base-adapter") |
| 1638 | } |
| 1639 | return a.base.NativeToValue(value) |
| 1640 | } |
| 1641 | |
| 1642 | func TestNativeToValueDelegatesUnregisteredStructs(t *testing.T) { |
| 1643 | custom := &recordingAdapter{base: types.DefaultTypeAdapter} |
nothing calls this directly
no test coverage detected