MCPcopy Create free account
hub / github.com/buke/quickjs-go / TestValueGetGoObjectUnavailableContext

Function TestValueGetGoObjectUnavailableContext

value_test.go:1800–1805  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1798}
1799
1800func TestValueGetGoObjectUnavailableContext(t *testing.T) {
1801 v := &Value{}
1802 _, err := v.GetGoObject()
1803 require.Error(t, err)
1804 require.Contains(t, err.Error(), "value context is not available")
1805}
1806
1807func TestValueGetGoObjectUnavailableHandleStore(t *testing.T) {
1808 rt := NewRuntime()

Callers

nothing calls this directly

Calls 2

GetGoObjectMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected