(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func 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 | |
| 79 | func TestGetAndReplace(t *testing.T) { |
| 80 | L := NewState() |
nothing calls this directly
no test coverage detected
searching dependent graphs…