Add more unit test to cover the uid_range_covers inside the uid-range.c file (#31666)

* Add more unit test to cover the  uid_range_covers inside the uid-range.c file
This commit is contained in:
Unique-Usman 2024-03-08 04:29:13 +05:30 committed by GitHub
parent f621aea33c
commit bda7e4d2e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,8 @@ TEST(uid_range) {
assert_se(uid_range_covers(p, 0, 0));
assert_se(!uid_range_covers(p, 0, 1));
assert_se(!uid_range_covers(p, 100, UINT32_MAX));
assert_se(!uid_range_covers(p, UINT32_MAX, 1));
assert_se(!uid_range_covers(p, UINT32_MAX - 10, 11));
assert_se(uid_range_add_str(&p, "500-999") >= 0);
assert_se(p);