func TestNoFindPlugin(t *testing.T) {
	t.Run("FindLoaded", func(t *testing.T) {
		db := GlobalPouchDB().New("foo", nil)
		_, err := db.Find(context.Background(), "")
		if errors.StatusCode(err) == kivik.StatusNotImplemented {
			t.Errorf("Got StatusNotImplemented when pouchdb-find should be loaded")
		}
	})
	t.Run("FindNotLoaded", func(t *testing.T) {
		db := GlobalPouchDB().New("foo", nil)
		db.Object.Set("find", nil) // Fake it
		_, err := db.Find(context.Background(), "")
		if code := errors.StatusCode(err); code != kivik.StatusNotImplemented {
			t.Errorf("Expected %d error, got %d/%s\n", kivik.StatusNotImplemented, code, err)
		}
	})
}
// TestNoFind tests that Find() properly returns NotImplemented when the
// pouchdb-find plugin is not loaded.
TestNoFind tests that Find() properly returns NotImplemented when the
pouchdb-find plugin is not loaded.
// TestNoFind tests that Find () properly returns NotImplemented when the // pouchdb - find plugin is not loaded .
func TestNoFindPlugin(t *testing.T) {
	t.Run("FindLoaded", func(t *testing.T) {
		db := GlobalPouchDB().New("foo", nil)
		_, err := db.Find(context.Background(), "")
		if errors.StatusCode(err) == kivik.StatusNotImplemented {
			t.Errorf("Got StatusNotImplemented when pouchdb-find should be loaded")
		}
	})
	t.Run("FindNotLoaded", func(t *testing.T) {
		db := GlobalPouchDB().New("foo", nil)
		db.Object.Set("find", nil) 
		_, err := db.Find(context.Background(), "")
		if code := errors.StatusCode(err); code != kivik.StatusNotImplemented {
			t.Errorf("Expected %d error, got %d/%s\n", kivik.StatusNotImplemented, code, err)
		}
	})
}
func TestNoFindPlugin ( t * testing . T ) { t . Run ( " " , func ( t * testing . T ) { db := GlobalPouchDB ( ) . New ( " " , nil ) _ , err := db . Find ( context . Background ( ) , " " ) if errors . StatusCode ( err ) == kivik . StatusNotImplemented { t . Errorf ( " " ) } } ) t . Run ( " " , func ( t * testing . T ) { db := GlobalPouchDB ( ) . New ( " " , nil ) db . Object . Set ( " " , nil ) _ , err := db . Find ( context . Background ( ) , " " ) if code := errors . StatusCode ( err ) ; code != kivik . StatusNotImplemented { t . Errorf ( " \n " , kivik . StatusNotImplemented , code , err ) } } ) }
TestNoFind tests that Find() properly returns NotImplemented when the
pouchdb-find plugin is not loaded.
TestNoFind tests that Find () properly returns NotImplemented when the pouchdb - find plugin is not loaded .
// Fake it