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

Function errorIfNotNil

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

Source from the content-addressed store, hash-verified

30}
31
32func errorIfNotNil(t *testing.T, v1 interface{}) {
33 if fmt.Sprint(v1) != "<nil>" {
34 t.Errorf("%v nil expected, but got '%v'", positionString(1), v1)
35 }
36}
37
38func errorIfNil(t *testing.T, v1 interface{}) {
39 if fmt.Sprint(v1) == "<nil>" {

Callers 5

TestLoadFileForShebangFunction · 0.85
TestLoadFileForEmptyFileFunction · 0.85
TestCoroutineApi1Function · 0.85
TestContextTimeoutFunction · 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…