diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2010-12-04 12:37:57 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2010-12-04 12:37:57 +0200 |
| commit | 104efbca046b67d176f982ec73c8e27b6413030d (patch) | |
| tree | b92fb16c846f4b13384bdb3700a0a1259ba899b5 /src | |
| parent | 9325828c77b142e177433defa912cebb878a4025 (diff) | |
* test-mu-store.c: stay within 33 line limit for functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/test-mu-store.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/tests/test-mu-store.c b/src/tests/test-mu-store.c index 2cc659a..299e91e 100644 --- a/src/tests/test-mu-store.c +++ b/src/tests/test-mu-store.c @@ -90,8 +90,7 @@ test_mu_store_store_and_count (void) MuMsg *msg; MuStore *store; gchar* tmpdir; - GError *err; - + tmpdir = test_mu_common_get_random_tmpdir(); g_assert (tmpdir); @@ -103,10 +102,7 @@ test_mu_store_store_and_count (void) mu_msg_gmime_init (); /* add one */ - err = NULL; - msg = mu_msg_new (MU_TESTMAILDIR "cur/1283599333.1840_11.cthulhu!2,", - NULL, &err); - + msg = mu_msg_new (MU_TESTMAILDIR "cur/1283599333.1840_11.cthulhu!2,", NULL, NULL); g_assert (msg); g_assert_cmpuint (mu_store_store (store, msg), ==, MU_OK); g_assert_cmpuint (1,==,mu_store_count (store)); @@ -115,18 +111,16 @@ test_mu_store_store_and_count (void) mu_msg_destroy (msg); /* add another one */ - msg = mu_msg_new (MU_TESTMAILDIR2 "bar/cur/mail3", - NULL, NULL); + msg = mu_msg_new (MU_TESTMAILDIR2 "bar/cur/mail3", NULL, NULL); g_assert (msg); g_assert_cmpuint (mu_store_store (store, msg), ==, MU_OK); g_assert_cmpuint (2,==,mu_store_count (store)); - g_assert_cmpuint (TRUE,==,mu_store_contains_message - (store, MU_TESTMAILDIR2 "bar/cur/mail3")); + g_assert_cmpuint (TRUE,==,mu_store_contains_message (store, MU_TESTMAILDIR2 "bar/cur/mail3")); mu_msg_destroy (msg); /* try to add the first one again. count should be 2 still */ - msg = mu_msg_new (MU_TESTMAILDIR "cur/1283599333.1840_11.cthulhu!2,", - NULL, NULL); + msg = mu_msg_new (MU_TESTMAILDIR "cur/1283599333.1840_11.cthulhu!2,", NULL, NULL); + g_assert (msg); g_assert_cmpuint (mu_store_store (store, msg), ==, MU_OK); g_assert_cmpuint (2,==,mu_store_count (store)); |
