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:
parent
5a7a9391ae
commit
829e28cfda
2 changed files with 18 additions and 0 deletions
|
@ -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"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue