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

Function TestTableNewLTable

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

Source from the content-addressed store, hash-verified

5)
6
7func TestTableNewLTable(t *testing.T) {
8 tbl := newLTable(-1, -2)
9 errorIfNotEqual(t, 0, cap(tbl.array))
10
11 tbl = newLTable(10, 9)
12 errorIfNotEqual(t, 10, cap(tbl.array))
13}
14
15func TestTableLen(t *testing.T) {
16 tbl := newLTable(0, 0)

Callers

nothing calls this directly

Calls 2

newLTableFunction · 0.85
errorIfNotEqualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…