(t *testing.T)
| 171 | } |
| 172 | |
| 173 | func TestDrop(t *testing.T) { |
| 174 | Convey("test drop", t, func() { |
| 175 | var stopTestService func() |
| 176 | var err error |
| 177 | |
| 178 | _, err = Drop("covenantsql://db") |
| 179 | So(err, ShouldEqual, ErrNotInitialized) |
| 180 | |
| 181 | stopTestService, _, err = startTestService() |
| 182 | So(err, ShouldBeNil) |
| 183 | defer stopTestService() |
| 184 | _, err = Drop("covenantsql://db") |
| 185 | So(err, ShouldBeNil) |
| 186 | |
| 187 | _, err = Drop("invalid dsn") |
| 188 | So(err, ShouldNotBeNil) |
| 189 | }) |
| 190 | } |
| 191 | |
| 192 | func TestOpen(t *testing.T) { |
| 193 | Convey("test Open", t, func() { |
nothing calls this directly
no test coverage detected