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

Function TestRowScanErr

row_test.go:27–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestRowScanErr(t *testing.T) {
28 stub := &RowStub{}
29 rowErr := fmt.Errorf("scan err")
30 row := &Row{RowScanner: stub, err: rowErr}
31 err := row.Scan()
32 assert.False(t, stub.Scanned, "row was scanned")
33 assert.Equal(t, rowErr, err)
34}

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…