void test_mutt_param_cmp_strict(void)
{
// bool mutt_param_cmp_strict(const struct ParameterList *p1, const struct ParameterList *p2);
+
+ {
+ struct ParameterList parameterlist = { 0 };
+ TEST_CHECK(mutt_param_cmp_strict(NULL, ¶meterlist));
+ }
+
+ {
+ struct ParameterList parameterlist = { 0 };
+ TEST_CHECK(mutt_param_cmp_strict(¶meterlist, NULL));
+ }
}
void test_mutt_param_delete(void)
{
// void mutt_param_delete(struct ParameterList *p, const char *attribute);
+
+ {
+ mutt_param_delete(NULL, "apple");
+ TEST_CHECK_(1, "mutt_param_delete(NULL, \"apple\")");
+ }
+
+ {
+ struct ParameterList parameterlist = { 0 };
+ mutt_param_delete(¶meterlist, NULL);
+ TEST_CHECK_(1, "mutt_param_delete(¶meterlist, NULL)");
+ }
}
void test_mutt_param_free(void)
{
// void mutt_param_free(struct ParameterList *p);
+
+ {
+ mutt_param_free(NULL);
+ TEST_CHECK_(1, "mutt_param_free(NULL)");
+ }
}
void test_mutt_param_free_one(void)
{
// void mutt_param_free_one(struct Parameter **p);
+
+ {
+ mutt_param_free_one(NULL);
+ TEST_CHECK_(1, "mutt_param_free_one(NULL)");
+ }
+
+ {
+ struct Parameter *parameter = NULL;
+ mutt_param_free_one(¶meter);
+ TEST_CHECK_(1, "mutt_param_free_one(¶meter)");
+ }
}
void test_mutt_param_get(void)
{
// char *mutt_param_get(const struct ParameterList *p, const char *s);
+
+ {
+ TEST_CHECK(!mutt_param_get(NULL, "apple"));
+ }
+
+ {
+ struct ParameterList parameterlist = { 0 };
+ TEST_CHECK(!mutt_param_get(¶meterlist, NULL));
+ }
}
void test_mutt_param_set(void)
{
// void mutt_param_set(struct ParameterList *p, const char *attribute, const char *value);
+
+ {
+ mutt_param_set(NULL, "apple", "banana");
+ TEST_CHECK_(1, "mutt_param_set(NULL, \"apple\", \"banana\")");
+ }
+
+ {
+ struct ParameterList parameterlist = { 0 };
+ mutt_param_set(¶meterlist, NULL, "banana");
+ TEST_CHECK_(1, "mutt_param_set(¶meterlist, NULL, \"banana\")");
+ }
+
+ {
+ struct ParameterList parameterlist = { 0 };
+ mutt_param_set(¶meterlist, "apple", NULL);
+ TEST_CHECK_(1, "mutt_param_set(¶meterlist, \"apple\", NULL)");
+ }
}