Lines Matching refs:nitems
111 nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr)); in ATF_TEST_CASE_BODY()
120 ATF_REQUIRE(num_items == nitems(string_arr)); in ATF_TEST_CASE_BODY()
132 ATF_REQUIRE_EQ(num_items, nitems(string_arr)); in ATF_TEST_CASE_BODY()
161 for (i = 0; i < nitems(fd); i++) { in ATF_TEST_CASE_BODY()
172 nvlist_add_descriptor_array(nvl, key, fd, nitems(fd)); in ATF_TEST_CASE_BODY()
181 ATF_REQUIRE(num_items == nitems(fd)); in ATF_TEST_CASE_BODY()
190 ATF_REQUIRE_EQ(num_items, nitems(fd)); in ATF_TEST_CASE_BODY()
227 nvlist_add_number_array(nvl, key, number, nitems(number)); in ATF_TEST_CASE_BODY()
236 ATF_REQUIRE(num_items == nitems(number)); in ATF_TEST_CASE_BODY()
242 ATF_REQUIRE_EQ(num_items, nitems(number)); in ATF_TEST_CASE_BODY()
290 ATF_REQUIRE(num_items == nitems(testnvl)); in ATF_TEST_CASE_BODY()
348 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
353 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
364 nvlist_add_bool_array(src, "nvl/bool", testbool, nitems(testbool)); in ATF_TEST_CASE_BODY()
370 nitems(string_arr)); in ATF_TEST_CASE_BODY()
375 nvlist_add_descriptor_array(src, "nvl/fd", testfd, nitems(testfd)); in ATF_TEST_CASE_BODY()
381 nitems(number)); in ATF_TEST_CASE_BODY()
387 (const nvlist_t * const *)testnvl, nitems(testnvl)); in ATF_TEST_CASE_BODY()
396 ATF_REQUIRE_EQ(num_items, nitems(testbool)); in ATF_TEST_CASE_BODY()
405 ATF_REQUIRE_EQ(num_items, nitems(string_arr)); in ATF_TEST_CASE_BODY()
421 ATF_REQUIRE_EQ(num_items, nitems(testfd)); in ATF_TEST_CASE_BODY()
428 ATF_REQUIRE_EQ(num_items, nitems(number)); in ATF_TEST_CASE_BODY()
438 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
446 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
449 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
777 for (i = 0; i < nitems(test); i++) { in ATF_TEST_CASE_BODY()
785 nvlist_add_nvlist_array(nvl, "nvl/nvlist_array", test, nitems(test)); in ATF_TEST_CASE_BODY()
790 nitems(test)); in ATF_TEST_CASE_BODY()
804 } else if (index >= 1 && index <= nitems(test)) { in ATF_TEST_CASE_BODY()
806 } else if (index == nitems(test) + 1) { in ATF_TEST_CASE_BODY()
808 } else if (index == nitems(test) + 2) { in ATF_TEST_CASE_BODY()
810 } else if (index >= nitems(test) + 3 && in ATF_TEST_CASE_BODY()
811 index <= 2 * nitems(test) + 2) { in ATF_TEST_CASE_BODY()
813 } else if (index == 2 * nitems(test) + 3) { in ATF_TEST_CASE_BODY()
829 for (i = 0; i < nitems(test); i++) in ATF_TEST_CASE_BODY()
919 for (i = 0; i < nitems(testbool); i++) in ATF_TEST_CASE_BODY()
928 nvlist_add_bool_array(nvl, key, testbool, nitems(testbool)); in ATF_TEST_CASE_BODY()
942 ATF_REQUIRE_EQ(count, nitems(testbool)); in ATF_TEST_CASE_BODY()
984 ATF_REQUIRE_EQ(count, nitems(number)); in ATF_TEST_CASE_BODY()
1015 for (i = 0; i < nitems(desc); i++) { in ATF_TEST_CASE_BODY()
1025 nvlist_add_descriptor_array(nvl, key, desc, nitems(desc)); in ATF_TEST_CASE_BODY()
1032 for (i = 0; i < nitems(desc); i++) in ATF_TEST_CASE_BODY()
1047 ATF_REQUIRE_EQ(num_items, nitems(desc)); in ATF_TEST_CASE_BODY()
1076 nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr)); in ATF_TEST_CASE_BODY()
1090 ATF_REQUIRE_EQ(count, nitems(string_arr)); in ATF_TEST_CASE_BODY()
1112 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
1142 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
1160 for (i = 0; i < nitems(testnvl); i++) in ATF_TEST_CASE_BODY()