Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: impl/memory/datastore_query_execution_test.go

Issue 2517833002: Fix #66. (Closed)
Patch Set: Move test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « impl/memory/datastore_index_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/datastore_query_execution_test.go
diff --git a/impl/memory/datastore_query_execution_test.go b/impl/memory/datastore_query_execution_test.go
index 7e8af383a47a048c8a4da2c62f9e8594efe32b11..59fd2e8d6823e562c3d74bdabd9ee6bc4eeeeaa0 100644
--- a/impl/memory/datastore_query_execution_test.go
+++ b/impl/memory/datastore_query_execution_test.go
@@ -511,6 +511,29 @@ var queryExecutionTests = []qExTest{
},
},
}},
+
+ {"regression: avoid index bleedover for common fields in compound indices", []qExStage{
+ {
+ addIdxs: []*ds.IndexDefinition{
+ indx("Kind", "A", "B"),
+ indx("Other", "A", "B"),
+ },
+ putEnts: []ds.PropertyMap{
+ pmap(
+ "$key", key("Kind", 1), Next,
+ "A", "value", Next,
+ "B", "value", Next),
+ },
+ },
+ {
+ expect: []qExpect{
+ {
+ q: nq("Other").Eq("A", "value").Order("B"),
+ get: []ds.PropertyMap{},
+ },
+ },
+ },
+ }},
}
func TestQueryExecution(t *testing.T) {
« no previous file with comments | « impl/memory/datastore_index_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698