Complete unit tests coverage of freefare.c.

The freefare_get_tag_friendly_name() function was not tested.  Call it from both supported cards unit tests suites.
This commit is contained in:
Romain Tartiere 2010-07-01 10:57:59 +00:00
parent 5a7a9391ae
commit 829e28cfda
2 changed files with 18 additions and 0 deletions

View file

@ -339,3 +339,11 @@ test_mifare_classic_get_uid (void)
free (uid); free (uid);
} }
void
test_mifare_classic_get_tag_friendly_name (void)
{
const char *name = freefare_get_tag_friendly_name (tag);
cut_assert_not_null (name, cut_message ("freefare_get_tag_friendly_name() failed"));
}

View file

@ -153,3 +153,13 @@ test_mifare_ultralight_get_uid (void)
free (uid); free (uid);
} }
void
test_mifare_ultralight_tag_friendly_name (void)
{
const char *name = freefare_get_tag_friendly_name (tag);
cut_assert_not_null (name, cut_message ("freefare_get_tag_friendly_name() failed"));
}