tests: improve coverage a bit

This commit is contained in:
Dirk-Jan C. Binnema
2022-05-24 19:36:39 +03:00
parent 046398b1ae
commit 91dcd19dad
3 changed files with 75 additions and 18 deletions

View File

@ -439,6 +439,10 @@ C0bdoCx44QVU8HaZ2x91h3GoM/0q5bqM/rvCauwbokiJgAUrznecNPY=
if (!part.is_encrypted())
continue;
g_assert_false(!!part.content_description());
g_assert_false(part.is_attachment());
g_assert_cmpuint(part.size(),==,0);
const auto& mobj{part.mime_object()};
if (!mobj.is_multipart_encrypted())
continue;
@ -469,6 +473,8 @@ Content-Type: message/rfc822
)";
auto message{Message::make_from_text(msgtext)};
g_assert_true(!!message);
g_assert_true(message->cached_sexp().empty());
}