MCPcopy Create free account
hub / github.com/devfeel/dotweb / NotNil

Function NotNil

test/assert.go:51–56  ·  view source on GitHub ↗
(t *testing.T, object interface{})

Source from the content-addressed store, hash-verified

49}
50
51func NotNil(t *testing.T, object interface{}) {
52 if isNil(object) {
53 formattedLog(t, "Expected value not to be <nil>", object)
54 t.FailNow()
55 }
56}
57
58func isNil(object interface{}) bool {
59 if object == nil {

Callers 9

TestNewHttpServerFunction · 0.92
TestSesionConfigFunction · 0.92
Test_String2Int_2Function · 0.92
Test_String2Int64_2Function · 0.92
TestInitConfigFunction · 0.92
TestInitConfigWithXmlFunction · 0.92

Calls 2

isNilFunction · 0.85
formattedLogFunction · 0.85

Tested by 9

TestNewHttpServerFunction · 0.74
TestSesionConfigFunction · 0.74
Test_String2Int_2Function · 0.74
Test_String2Int64_2Function · 0.74
TestInitConfigFunction · 0.74
TestInitConfigWithXmlFunction · 0.74