[evolution-data-server/sqlite-refactor: 10/14] test-client-custom-summary: Added query test which ORs the same field



commit 6151aa07cca1f430150e6bad08c47fd28a2f799d
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Sun Nov 24 22:16:49 2013 +0900

    test-client-custom-summary: Added query test which ORs the same field
    
    This helps to test the query optimizer in EBookBackendSqlite, which
    will optimize a query which ORs two multi attribute fields (like
    E_CONTACT_EMAIL).

 tests/libebook/client/test-client-custom-summary.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/tests/libebook/client/test-client-custom-summary.c 
b/tests/libebook/client/test-client-custom-summary.c
index 386e5a1..b34e414 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -481,6 +481,25 @@ main (gint argc,
 
                add_client_test (
                        suites[i].prefix,
+                       "/Or/TwoEmails",
+                       suites[i].func,
+                       e_book_query_orv (
+                               e_book_query_field_test (
+                                       E_CONTACT_EMAIL,
+                                       E_BOOK_QUERY_ENDS_WITH,
+                                       "jackson.com"),
+                               e_book_query_field_test (
+                                       E_CONTACT_EMAIL,
+                                       E_BOOK_QUERY_ENDS_WITH,
+                                       ".org"),
+                               NULL),
+                       4,
+                       suites[i].direct,
+                       suites[i].custom,
+                       FALSE);
+
+               add_client_test (
+                       suites[i].prefix,
                        "/Exact/Email",
                        suites[i].func,
                        e_book_query_field_test (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]