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

Function errorIfNotEqual

testutils_test.go:16–20  ·  view source on GitHub ↗
(t *testing.T, v1, v2 interface{})

Source from the content-addressed store, hash-verified

14}
15
16func errorIfNotEqual(t *testing.T, v1, v2 interface{}) {
17 if v1 != v2 {
18 t.Errorf("%v '%v' expected, but got '%v'", positionString(1), v1, v2)
19 }
20}
21
22func errorIfFalse(t *testing.T, cond bool, msg string, args ...interface{}) {
23 if !cond {

Callers 15

TestTableNewLTableFunction · 0.85
TestTableLenFunction · 0.85
TestTableAppendFunction · 0.85
TestTableInsertFunction · 0.85
TestTableMaxNFunction · 0.85
TestTableRemoveFunction · 0.85
TestTableRawSetIntFunction · 0.85
TestTableRawSetHFunction · 0.85
TestTableRawGetHFunction · 0.85
TestTableForEachFunction · 0.85
TestCheckIntFunction · 0.85
TestCheckInt64Function · 0.85

Calls 1

positionStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…