]> Kevux Git Server - fll/commit
Bugfix: Update unit tests and fix problems exposed after fixing unit tests for f_netw...
authorKevin Day <thekevinday@gmail.com>
Tue, 5 Dec 2023 06:03:14 +0000 (00:03 -0600)
committerKevin Day <thekevinday@gmail.com>
Tue, 5 Dec 2023 06:03:14 +0000 (00:03 -0600)
commitc433df5cdee21abf93f2bb285434725ec6dec48f
tree91a7f7b8aefbbed1d6baa16b33e17d4cc6ada4a5
parent47908873df866a108681cd6ec8fdd95b3a3bf513
Bugfix: Update unit tests and fix problems exposed after fixing unit tests for f_network_is_ip_address().

This is a follow up to these commits:
0e69871e03990990e0ebdf1b496ece67c40f4b5e
309f2625e983ef164c52543b492365fe92eed6d5

Add additional tests.
Fix bad test data, such as where the string lengths are incorrect.
Perform tests when "where" parameter both is NULL or is a valid pointer.
The tests now handle validating the "where" parameter, when specified.

Add additional comments to better communicate the logic in f_network_is_ip_address().
Properly handle the "where" parameter assignment.
level_0/f_network/c/network.c
level_0/f_network/c/network.h
level_0/f_network/tests/unit/c/test-network-is_ip_address.c