func TestGetMissing(t *testing.T) {
	bx := NewTestDB()
	defer bx.Close()

	things, err := bx.New([]byte("things"))
	if err != nil {
		t.Error(err.Error())
	}

	key := []byte("missing")
	if got, _ := things.Get(key); got != nil {
		t.Errorf("not expecting value for key %q: got %q", key, got)
	}
}
// Ensure that a bucket that gets a non-existent key returns nil.
Ensure that a bucket that gets a non-existent key returns nil.
// Ensure that a bucket that gets a non - existent key returns nil .
func TestGetMissing(t *testing.T) {
	bx := NewTestDB()
	defer bx.Close()
	things, err := bx.New([]byte("things"))
	if err != nil {
		t.Error(err.Error())
	}
	key := []byte("missing")
	if got, _ := things.Get(key); got != nil {
		t.Errorf("not expecting value for key %q: got %q", key, got)
	}
}
func TestGetMissing ( t * testing . T ) { bx := NewTestDB ( ) defer bx . Close ( ) things , err := bx . New ( [ ] byte ( " " ) ) if err != nil { t . Error ( err . Error ( ) ) } key := [ ] byte ( " " ) if got , _ := things . Get ( key ) ; got != nil { t . Errorf ( " " , key , got ) } }
Ensure that a bucket that gets a non-existent key returns nil.
Ensure that a bucket that gets a non - existent key returns nil .