MCPcopy Index your code
hub / github.com/yuin/gopher-lua / TestSkipOpenLibs

Function TestSkipOpenLibs

state_test.go:69–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

67}
68
69func TestSkipOpenLibs(t *testing.T) {
70 L := NewState(Options{SkipOpenLibs: true})
71 defer L.Close()
72 errorIfScriptNotFail(t, L, `print("")`,
73 "attempt to call a non-function object")
74 L2 := NewState()
75 defer L2.Close()
76 errorIfScriptFail(t, L2, `print("")`)
77}
78
79func TestGetAndReplace(t *testing.T) {
80 L := NewState()

Callers

nothing calls this directly

Calls 4

errorIfScriptNotFailFunction · 0.85
errorIfScriptFailFunction · 0.85
NewStateFunction · 0.70
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…