Beispiel #1
0
func init() {
	kv, err := kvdb.New(mem.Name, "driver_test", []string{}, nil)
	if err != nil {
		dlog.Panicf("Failed to intialize KVDB")
	}
	err = kvdb.SetInstance(kv)
	if err != nil {
		dlog.Panicf("Failed to set KVDB instance")
	}
}
func init() {
	kv, err := kvdb.New(mem.Name, "driver_test", []string{}, nil)
	if err != nil {
		dlog.Panicf("Failed to initialize KVDB")
	}
	if err := kvdb.SetInstance(kv); err != nil {
		dlog.Panicf("Failed to set KVDB instance")
	}
	testEnumerator = NewDefaultEnumerator("enumerator_test", kv)
}