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

Function TestTableMaxN

table_test.go:107–119  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestTableMaxN(t *testing.T) {
108 tbl := newLTable(0, 0)
109 tbl.Append(LTrue)
110 tbl.Append(LTrue)
111 tbl.Append(LTrue)
112 errorIfNotEqual(t, 3, tbl.MaxN())
113
114 tbl = newLTable(0, 0)
115 errorIfNotEqual(t, 0, tbl.MaxN())
116
117 tbl = newLTable(10, 0)
118 errorIfNotEqual(t, 0, tbl.MaxN())
119}
120
121func TestTableRemove(t *testing.T) {
122 tbl := newLTable(0, 0)

Callers

nothing calls this directly

Calls 4

newLTableFunction · 0.85
errorIfNotEqualFunction · 0.85
AppendMethod · 0.80
MaxNMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…