void test_rfc2047_decode(void)
{
// void rfc2047_decode(char **pd);
+
+ {
+ rfc2047_decode(NULL);
+ TEST_CHECK_(1, "rfc2047_decode(NULL)");
+ }
+
+ {
+ char *pd = NULL;
+ rfc2047_decode(&pd);
+ TEST_CHECK_(1, "rfc2047_decode(&pd)");
+ }
}
void test_rfc2047_decode_addrlist(void)
{
// void rfc2047_decode_addrlist(struct Address *a);
+
+ {
+ rfc2047_decode_addrlist(NULL);
+ TEST_CHECK_(1, "rfc2047_decode_addrlist(NULL)");
+ }
}
void test_rfc2047_decode_envelope(void)
{
// void rfc2047_decode_envelope(struct Envelope *env);
+
+ {
+ rfc2047_decode_envelope(NULL);
+ TEST_CHECK_(1, "rfc2047_decode_envelope(NULL)");
+ }
}
void test_rfc2047_encode(void)
{
// void rfc2047_encode(char **pd, const char *specials, int col, const char *charsets);
+
+ {
+ rfc2047_encode(NULL, AddressSpecials, 0, "apple");
+ TEST_CHECK_(1, "rfc2047_encode(NULL, AddressSpecials, 0, \"apple\")");
+ }
+
+ {
+ char *pd = NULL;
+ rfc2047_encode(&pd, NULL, 0, "apple");
+ TEST_CHECK_(1, "rfc2047_encode(&pd, NULL, 0, \"apple\")");
+ }
+
+ {
+ char *pd = NULL;
+ rfc2047_encode(&pd, AddressSpecials, 0, NULL);
+ TEST_CHECK_(1, "rfc2047_encode(&pd, AddressSpecials, 0, NULL)");
+ }
}
void test_rfc2047_encode_addrlist(void)
{
// void rfc2047_encode_addrlist(struct Address *addr, const char *tag);
+
+ {
+ rfc2047_encode_addrlist(NULL, "apple");
+ TEST_CHECK_(1, "rfc2047_encode_addrlist(NULL, \"apple\")");
+ }
+
+ {
+ struct Address address = { 0 };
+ rfc2047_encode_addrlist(&address, NULL);
+ TEST_CHECK_(1, "rfc2047_encode_addrlist(&address, NULL)");
+ }
}
void test_rfc2047_encode_envelope(void)
{
// void rfc2047_encode_envelope(struct Envelope *env);
+
+ {
+ rfc2047_encode_envelope(NULL);
+ TEST_CHECK_(1, "rfc2047_encode_envelope(NULL)");
+ }
}