test_storage: further refactoring, added test functionality, and TESTING.md to describe testing approach

This commit is contained in:
Ian Clowes 2020-06-07 16:02:56 +01:00 committed by Polynomialdivision
parent bd35961de8
commit 292ccb01f2
9 changed files with 513 additions and 117 deletions

View file

@ -42,7 +42,7 @@ int hwaddr_aton(const char *txt, uint8_t *addr) {
b = hex_to_bin(*txt++);
if (b < 0) return -1;
*addr++ = (a << 4) | b;
// TODO: Should NUL terminator be checked for? Is aa:bb:cc:dd:ee:ff00 valid input?
// TODO: Should NUL terminator be checked for? Is aa:bb:cc:dd:ee:ff00 valid input?
if (i < (ETH_ALEN - 1) && *txt++ != ':') return -1;
}