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

Function TestPushFStringPointer

lua_test.go:8–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestPushFStringPointer(t *testing.T) {
9 l := NewState()
10 l.PushFString("%p %s", l, "test")
11
12 expected := fmt.Sprintf("%p %s", l, "test")
13 actual := CheckString(l, -1)
14 if expected != actual {
15 t.Errorf("PushFString, expected \"%s\" but found \"%s\"", expected, actual)
16 }
17}
18
19func TestToBooleanOutOfRange(t *testing.T) {
20 l := NewState()

Callers

nothing calls this directly

Calls 3

PushFStringMethod · 0.95
NewStateFunction · 0.85
CheckStringFunction · 0.85

Tested by

no test coverage detected