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

Function formattedLog

test/assert.go:72–80  ·  view source on GitHub ↗
(t *testing.T, fmt string, args ...interface{})

Source from the content-addressed store, hash-verified

70}
71
72func formattedLog(t *testing.T, fmt string, args ...interface{}) {
73 _, file, line, _ := runtime.Caller(2)
74 file = filepath.Base(file)
75 targs := make([]interface{}, len(args)+2)
76 targs[0] = file
77 targs[1] = line
78 copy(targs[2:], args)
79 t.Logf("\033[31m%s:%d:\n\n\t"+fmt+"\033[39m\n\n", targs...)
80}

Callers 5

ContainsFunction · 0.85
EqualFunction · 0.85
NotEqualFunction · 0.85
NilFunction · 0.85
NotNilFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected