otfe/models/testhelpers.go

12 lines
251 B
Go

package models
//DBWipeCollection removes all data from the
//specifed collections
func DBWipeCollection(collections ...string) {
for _, collection := range collections {
c, s := GetCollection(collection)
defer s.Close()
c.RemoveAll(nil)
}
}