[evolution-data-server/sqlite-refactor: 10/13]	test-client-custom-summary: Added query test which ORs the same field
- From: Tristan Van Berkom <tvb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [evolution-data-server/sqlite-refactor: 10/13]	test-client-custom-summary: Added query test which ORs the same field
 
- Date: Mon, 25 Nov 2013 10:21:01 +0000 (UTC)
 
commit a03fa7d5045987c7323fa604b2216680f8c05972
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]