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

Function TestTableRawSetH

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

Source from the content-addressed store, hash-verified

153}
154
155func TestTableRawSetH(t *testing.T) {
156 tbl := newLTable(0, 0)
157 tbl.RawSetH(LString("key"), LTrue)
158 tbl.RawSetH(LString("key"), LNil)
159 _, found := tbl.dict[LString("key")]
160 errorIfNotEqual(t, false, found)
161
162 tbl.RawSetH(LTrue, LTrue)
163 tbl.RawSetH(LTrue, LNil)
164 _, foundb := tbl.dict[LTrue]
165 errorIfNotEqual(t, false, foundb)
166}
167
168func TestTableRawGetH(t *testing.T) {
169 tbl := newLTable(0, 0)

Callers

nothing calls this directly

Calls 4

newLTableFunction · 0.85
LStringTypeAlias · 0.85
errorIfNotEqualFunction · 0.85
RawSetHMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…