void test_driver_tags_free(void)
{
// void driver_tags_free(struct TagHead *head);
+
+ {
+ driver_tags_free(NULL);
+ TEST_CHECK_(1, "driver_tags_free(NULL)");
+ }
}
void test_driver_tags_get(void)
{
// char *driver_tags_get(struct TagHead *head);
+
+ {
+ TEST_CHECK(!driver_tags_get(NULL));
+ }
}
void test_driver_tags_get_transformed(void)
{
// char *driver_tags_get_transformed(struct TagHead *head);
+
+ {
+ TEST_CHECK(!driver_tags_get_transformed(NULL));
+ }
}
void test_driver_tags_get_transformed_for(void)
{
// char *driver_tags_get_transformed_for(const char *name, struct TagHead *head);
+
+ {
+ struct TagHead taghead = { 0 };
+ TEST_CHECK(!driver_tags_get_transformed_for(NULL, &taghead));
+ }
+
+ {
+ TEST_CHECK(!driver_tags_get_transformed_for("apple", NULL));
+ }
}
void test_driver_tags_get_with_hidden(void)
{
// char *driver_tags_get_with_hidden(struct TagHead *head);
+
+ {
+ TEST_CHECK(!driver_tags_get_with_hidden(NULL));
+ }
}
void test_driver_tags_replace(void)
{
// bool driver_tags_replace(struct TagHead *head, char *tags);
+
+ {
+ TEST_CHECK(!driver_tags_replace(NULL, "apple"));
+ }
+
+ {
+ struct TagHead taghead = { 0 };
+ TEST_CHECK(driver_tags_replace(&taghead, NULL));
+ }
}