Documentation.

This commit is contained in:
Nuno Cruces
2023-03-01 10:34:08 +00:00
parent e64bffa520
commit c7165a2e56
10 changed files with 49 additions and 30 deletions

View File

@@ -213,12 +213,8 @@ func TestConn_MustPrepare_empty(t *testing.T) {
defer db.Close()
defer func() { _ = recover() }()
stmt := db.MustPrepare(``)
defer stmt.Close()
if stmt != nil {
t.Error("want nil")
}
_ = db.MustPrepare(``)
t.Error("want panic")
}
func TestConn_MustPrepare_tail(t *testing.T) {