MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / TestDrop

Function TestDrop

client/driver_test.go:173–190  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

171}
172
173func 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
192func TestOpen(t *testing.T) {
193 Convey("test Open", t, func() {

Callers

nothing calls this directly

Calls 2

DropFunction · 0.85
startTestServiceFunction · 0.85

Tested by

no test coverage detected