MCPcopy Create free account
hub / github.com/coreboot/coreboot / test_atol

Function test_atol

tests/lib/string-test.c:191–197  ·  view source on GitHub ↗

Please bear in mind that `atol()` uses `strspn()` internally, so the result of `test_atol` is dependent on the result of `test_strspn`. */

Source from the content-addressed store, hash-verified

189/* Please bear in mind that `atol()` uses `strspn()` internally, so the result
190 of `test_atol` is dependent on the result of `test_strspn`. */
191static void test_atol(void **state)
192{
193 int i;
194
195 for (i = 0; i < ARRAY_SIZE(str_with_l_val); i++)
196 assert_int_equal(str_with_l_val[i].value, atol(str_with_l_val[i].str));
197}
198
199int main(void)
200{

Callers

nothing calls this directly

Calls 1

atolFunction · 0.50

Tested by

no test coverage detected