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

Function errorIfNil

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

Source from the content-addressed store, hash-verified

36}
37
38func errorIfNil(t *testing.T, v1 interface{}) {
39 if fmt.Sprint(v1) == "<nil>" {
40 t.Errorf("%v non-nil value expected, but got nil", positionString(1))
41 }
42}
43
44func errorIfScriptFail(t *testing.T, L *LState, script string) {
45 if err := L.DoString(script); err != nil {

Callers 4

TestCoroutineApi1Function · 0.85
TestContextTimeoutFunction · 0.85
TestContextCancelFunction · 0.85
TestContextWithCroutineFunction · 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…