mirror of https://github.com/mattn/go-sqlite3.git
Add test for error == nil
This commit is contained in:
parent
79fb9332c1
commit
dfec358c75
|
@ -8,6 +8,12 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestSimpleError(t *testing.T) {
|
||||||
|
if ErrWarning.Error() != "" {
|
||||||
|
t.Error("wrong error code for corrupted DB")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func TestCorruptDbErrors(t *testing.T) {
|
func TestCorruptDbErrors(t *testing.T) {
|
||||||
dirName, err := ioutil.TempDir("", "sqlite3")
|
dirName, err := ioutil.TempDir("", "sqlite3")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue