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

Function TestLoadFileForEmptyFile

auxlib_test.go:322–336  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

320}
321
322func TestLoadFileForEmptyFile(t *testing.T) {
323 tmpFile, err := os.CreateTemp("", "")
324 errorIfNotNil(t, err)
325
326 defer func() {
327 tmpFile.Close()
328 os.Remove(tmpFile.Name())
329 }()
330
331 L := NewState()
332 defer L.Close()
333
334 _, err = L.LoadFile(tmpFile.Name())
335 errorIfNotNil(t, err)
336}

Callers

nothing calls this directly

Calls 6

errorIfNotNilFunction · 0.85
NameMethod · 0.80
LoadFileMethod · 0.80
NewStateFunction · 0.70
CloseMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…