void test_mutt_actx_add_attach(void)
{
// void mutt_actx_add_attach(struct AttachCtx *actx, struct AttachPtr *attach);
+
+ {
+ struct AttachPtr attach = { 0 };
+ mutt_actx_add_attach(NULL, &attach);
+ TEST_CHECK_(1, "mutt_actx_add_attach(NULL, &attach)");
+ }
+
+ {
+ struct AttachCtx attachctx = { 0 };
+ mutt_actx_add_attach(&attachctx, NULL);
+ TEST_CHECK_(1, "mutt_actx_add_attach(&attachctx, NULL)");
+ }
}
void test_mutt_actx_add_body(void)
{
// void mutt_actx_add_body(struct AttachCtx *actx, struct Body *new_body);
+
+ {
+ struct Body body = { 0 };
+ mutt_actx_add_body(NULL, &body);
+ TEST_CHECK_(1, "mutt_actx_add_body(NULL, &body)");
+ }
+
+ {
+ struct AttachCtx attachctx = { 0 };
+ mutt_actx_add_body(&attachctx, NULL);
+ TEST_CHECK_(1, "mutt_actx_add_body(&attachctx, NULL)");
+ }
}
void test_mutt_actx_add_fp(void)
{
// void mutt_actx_add_fp(struct AttachCtx *actx, FILE *fp_new);
+
+ {
+ FILE fp = { 0 };
+ mutt_actx_add_fp(NULL, &fp);
+ TEST_CHECK_(1, "mutt_actx_add_fp(NULL, &fp)");
+ }
+
+ {
+ struct AttachCtx attachctx = { 0 };
+ mutt_actx_add_fp(&attachctx, NULL);
+ TEST_CHECK_(1, "mutt_actx_add_fp(&attachctx, NULL)");
+ }
}
void test_mutt_actx_free(void)
{
// void mutt_actx_free(struct AttachCtx **pactx);
+
+ {
+ mutt_actx_free(NULL);
+ TEST_CHECK_(1, "mutt_actx_free(NULL)");
+ }
+
+ {
+ struct AttachCtx *attachctx = NULL;
+ mutt_actx_free(&attachctx);
+ TEST_CHECK_(1, "mutt_actx_free(&attachctx)");
+ }
}
void test_mutt_actx_free_entries(void)
{
// void mutt_actx_free_entries(struct AttachCtx *actx);
+
+ {
+ mutt_actx_free_entries(NULL);
+ TEST_CHECK_(1, "mutt_actx_free_entries(NULL)");
+ }
}