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

Function TestSimpleError

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected