(t *testing.T)
| 1805 | } |
| 1806 | |
| 1807 | func TestValueGetGoObjectUnavailableHandleStore(t *testing.T) { |
| 1808 | rt := NewRuntime() |
| 1809 | defer rt.Close() |
| 1810 | ctx := rt.NewContext() |
| 1811 | defer ctx.Close() |
| 1812 | |
| 1813 | v := ctx.NewObject() |
| 1814 | defer v.Free() |
| 1815 | |
| 1816 | backupStore := ctx.handleStore |
| 1817 | ctx.handleStore = nil |
| 1818 | _, err := v.GetGoObject() |
| 1819 | ctx.handleStore = backupStore |
| 1820 | |
| 1821 | require.Error(t, err) |
| 1822 | require.Contains(t, err.Error(), "value context is not available") |
| 1823 | } |
| 1824 | |
| 1825 | func TestValueGetGoObjectIdentityRegistryResolution(t *testing.T) { |
| 1826 | rt := NewRuntime() |
nothing calls this directly
no test coverage detected