As of task creation, https://doc.wikimedia.org/cover/mediawiki-libs-IPUtils/ was only 50-55 ish percent
While in some functions testing for explicit ranges is accepted, it's not tested at all
None of the examples at https://github.com/wikimedia/mediawiki-libs-IPUtils/blob/cb861b9/tests/IPUtilsTest.php#L258-L277 include an -, similarly in https://github.com/wikimedia/mediawiki-libs-IPUtils/blob/cb861b9/tests/IPUtilsTest.php#L294-L309
Looking at T247149, which requests 185.153.192.0-60 (which has to be 185.153.192.0-185.153.192.60) to work https://github.com/wikimedia/mediawiki-libs-IPUtils/blob/cb861b9/src/IPUtils.php#L487-L557 mentions 1.2.3.4 - 1.2.3.5 Explicit range
It seems prudent to actually have test cases to test a large swathe of code :)
Before:
Currently:







