MCPcopy Create free account
hub / github.com/mattn/go-sqlite3 / TestSimpleError

Function TestSimpleError

error_test.go:18–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func TestSimpleError(t *testing.T) {
19 e := ErrError.Error()
20 if e != "SQL logic error or missing database" && e != "SQL logic error" {
21 t.Error("wrong error code: " + e)
22 }
23}
24
25func TestCorruptDbErrors(t *testing.T) {
26 dirName, err := ioutil.TempDir("", "sqlite3")

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected