Lines Matching refs:nitems
108 nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr)); in ATF_TEST_CASE_BODY()
117 ATF_REQUIRE(num_items == nitems(string_arr)); in ATF_TEST_CASE_BODY()
129 ATF_REQUIRE_EQ(num_items, nitems(string_arr)); in ATF_TEST_CASE_BODY()
158 for (i = 0; i < nitems(fd); i++) { in ATF_TEST_CASE_BODY()
169 nvlist_add_descriptor_array(nvl, key, fd, nitems(fd)); in ATF_TEST_CASE_BODY()
178 ATF_REQUIRE(num_items == nitems(fd)); in ATF_TEST_CASE_BODY()
187 ATF_REQUIRE_EQ(num_items, nitems(fd)); in ATF_TEST_CASE_BODY()
224 nvlist_add_number_array(nvl, key, number, nitems(number)); in ATF_TEST_CASE_BODY()
233 ATF_REQUIRE(num_items == nitems(number)); in ATF_TEST_CASE_BODY()
239 ATF_REQUIRE_EQ(num_items, nitems(number)); in ATF_TEST_CASE_BODY()
287 ATF_REQUIRE(num_items == nitems(testnvl)); in ATF_TEST_CASE_BODY()
345 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
350 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
361 nvlist_add_bool_array(src, "nvl/bool", testbool, nitems(testbool)); in ATF_TEST_CASE_BODY()
367 nitems(string_arr)); in ATF_TEST_CASE_BODY()
372 nvlist_add_descriptor_array(src, "nvl/fd", testfd, nitems(testfd)); in ATF_TEST_CASE_BODY()
378 nitems(number)); in ATF_TEST_CASE_BODY()
384 (const nvlist_t * const *)testnvl, nitems(testnvl)); in ATF_TEST_CASE_BODY()
393 ATF_REQUIRE_EQ(num_items, nitems(testbool)); in ATF_TEST_CASE_BODY()
402 ATF_REQUIRE_EQ(num_items, nitems(string_arr)); in ATF_TEST_CASE_BODY()
418 ATF_REQUIRE_EQ(num_items, nitems(testfd)); in ATF_TEST_CASE_BODY()
425 ATF_REQUIRE_EQ(num_items, nitems(number)); in ATF_TEST_CASE_BODY()
435 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
443 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
446 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
774 for (i = 0; i < nitems(test); i++) { in ATF_TEST_CASE_BODY()
782 nvlist_add_nvlist_array(nvl, "nvl/nvlist_array", test, nitems(test)); in ATF_TEST_CASE_BODY()
787 nitems(test)); in ATF_TEST_CASE_BODY()
801 } else if (index >= 1 && index <= nitems(test)) { in ATF_TEST_CASE_BODY()
803 } else if (index == nitems(test) + 1) { in ATF_TEST_CASE_BODY()
805 } else if (index == nitems(test) + 2) { in ATF_TEST_CASE_BODY()
807 } else if (index >= nitems(test) + 3 && in ATF_TEST_CASE_BODY()
808 index <= 2 * nitems(test) + 2) { in ATF_TEST_CASE_BODY()
810 } else if (index == 2 * nitems(test) + 3) { in ATF_TEST_CASE_BODY()
826 for (i = 0; i < nitems(test); i++) in ATF_TEST_CASE_BODY()
916 for (i = 0; i < nitems(testbool); i++) in ATF_TEST_CASE_BODY()
925 nvlist_add_bool_array(nvl, key, testbool, nitems(testbool)); in ATF_TEST_CASE_BODY()
939 ATF_REQUIRE_EQ(count, nitems(testbool)); in ATF_TEST_CASE_BODY()
981 ATF_REQUIRE_EQ(count, nitems(number)); in ATF_TEST_CASE_BODY()
1012 for (i = 0; i < nitems(desc); i++) { in ATF_TEST_CASE_BODY()
1022 nvlist_add_descriptor_array(nvl, key, desc, nitems(desc)); in ATF_TEST_CASE_BODY()
1029 for (i = 0; i < nitems(desc); i++) in ATF_TEST_CASE_BODY()
1044 ATF_REQUIRE_EQ(num_items, nitems(desc)); in ATF_TEST_CASE_BODY()
1073 nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr)); in ATF_TEST_CASE_BODY()
1087 ATF_REQUIRE_EQ(count, nitems(string_arr)); in ATF_TEST_CASE_BODY()
1109 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
1139 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
1157 for (i = 0; i < nitems(testnvl); i++) in ATF_TEST_CASE_BODY()
1179 nitems(somestr)); in ATF_TEST_CASE_BODY()