MCPcopy Index your code
hub / github.com/Shopify/go-lua / TestEmptyString

Function TestEmptyString

parser_test.go:40–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestEmptyString(t *testing.T) {
41 l := NewState()
42 if err := LoadString(l, ""); err != nil {
43 t.Fatal(err.Error())
44 }
45 l.Call(0, 0)
46}
47
48func TestParserExhaustively(t *testing.T) {
49 _, err := exec.LookPath("luac")

Callers

nothing calls this directly

Calls 4

CallMethod · 0.95
NewStateFunction · 0.85
LoadStringFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected