MCPcopy
hub / github.com/jmoiron/sqlx / Error

Method Error

named_test.go:106–115  ·  view source on GitHub ↗
(err error, msg ...interface{})

Source from the content-addressed store, hash-verified

104}
105
106func (t Test) Error(err error, msg ...interface{}) {
107 t.t.Helper()
108 if err != nil {
109 if len(msg) == 0 {
110 t.t.Error(err)
111 } else {
112 t.t.Error(msg...)
113 }
114 }
115}
116
117func (t Test) Errorf(err error, format string, args ...interface{}) {
118 t.t.Helper()

Callers 15

TestNamedContextQueriesFunction · 0.95
TestNamedQueriesFunction · 0.95
TestCompileQueryFunction · 0.80
TestEscapedColonsFunction · 0.80
BenchmarkBindSpeedFunction · 0.80
TestMissingNamesFunction · 0.80
TestEmbeddedStructsFunction · 0.80
TestSelectSliceMapTimeFunction · 0.80
TestNilReceiverFunction · 0.80
TestNamedQueryFunction · 0.80
TestScanErrorFunction · 0.80
TestUsageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected