void test_mutt_email_cmp_strict(void)
{
// bool mutt_email_cmp_strict(const struct Email *e1, const struct Email *e2);
+
+ {
+ struct Email email = { 0 };
+ TEST_CHECK(!mutt_email_cmp_strict(NULL, &email));
+ }
+
+ {
+ struct Email email = { 0 };
+ TEST_CHECK(!mutt_email_cmp_strict(&email, NULL));
+ }
}
void test_mutt_email_free(void)
{
// void mutt_email_free(struct Email **e);
+
+ {
+ mutt_email_free(NULL);
+ TEST_CHECK_(1, "mutt_email_free(NULL)");
+ }
+
+ {
+ struct Email *email = NULL;
+ mutt_email_free(&email);
+ TEST_CHECK_(1, "mutt_email_free(&email)");
+ }
}
void test_mutt_email_size(void)
{
// size_t mutt_email_size(const struct Email *e);
+
+ {
+ TEST_CHECK(mutt_email_size(NULL) == 0);
+ }
}