void test_mutt_body_cmp_strict(void)
{
// bool mutt_body_cmp_strict(const struct Body *b1, const struct Body *b2);
+
+ {
+ struct Body body = { 0 };
+ TEST_CHECK(!mutt_body_cmp_strict(NULL, &body));
+ }
+
+ {
+ struct Body body = { 0 };
+ TEST_CHECK(!mutt_body_cmp_strict(&body, NULL));
+ }
}
void test_mutt_body_free(void)
{
// void mutt_body_free(struct Body **p);
+
+ {
+ mutt_body_free(NULL);
+ TEST_CHECK_(1, "mutt_body_free(NULL)");
+ }
+
+ {
+ struct Body *body = NULL;
+ mutt_body_free(&body);
+ TEST_CHECK_(1, "mutt_body_free(&body)");
+ }
}