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

Function TestToString

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

Source from the content-addressed store, hash-verified

196}
197
198func TestToString(t *testing.T) {
199 L := NewState()
200 defer L.Close()
201 L.Push(LNumber(10))
202 L.Push(LString("99.9"))
203 L.Push(L.NewTable())
204 errorIfNotEqual(t, "10", L.ToString(1))
205 errorIfNotEqual(t, "99.9", L.ToString(2))
206 errorIfNotEqual(t, "", L.ToString(3))
207}
208
209func TestToTable(t *testing.T) {
210 L := NewState()

Callers

nothing calls this directly

Calls 8

LNumberTypeAlias · 0.85
LStringTypeAlias · 0.85
errorIfNotEqualFunction · 0.85
NewStateFunction · 0.70
PushMethod · 0.65
CloseMethod · 0.45
NewTableMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…