MCPcopy
hub / github.com/Masterminds/squirrel / TestRunWithBaseRunnerQueryRowError

Function TestRunWithBaseRunnerQueryRowError

statement_test.go:64–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestRunWithBaseRunnerQueryRowError(t *testing.T) {
65 sb := StatementBuilder.RunWith(fakeBaseRunner{})
66 assert.Error(t, RunnerNotQueryRunner, sb.Select("test").QueryRow().Scan(nil))
67
68}
69
70func TestStatementBuilderWhere(t *testing.T) {
71 sb := StatementBuilder.Where("x = ?", 1)

Callers

nothing calls this directly

Calls 4

ScanMethod · 0.65
QueryRowMethod · 0.65
RunWithMethod · 0.45
SelectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…