Lines Matching refs:nitems

109 	nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr));  in ATF_TEST_CASE_BODY()
118 ATF_REQUIRE(num_items == nitems(string_arr)); in ATF_TEST_CASE_BODY()
130 ATF_REQUIRE_EQ(num_items, nitems(string_arr)); in ATF_TEST_CASE_BODY()
159 for (i = 0; i < nitems(fd); i++) { in ATF_TEST_CASE_BODY()
170 nvlist_add_descriptor_array(nvl, key, fd, nitems(fd)); in ATF_TEST_CASE_BODY()
179 ATF_REQUIRE(num_items == nitems(fd)); in ATF_TEST_CASE_BODY()
188 ATF_REQUIRE_EQ(num_items, nitems(fd)); in ATF_TEST_CASE_BODY()
225 nvlist_add_number_array(nvl, key, number, nitems(number)); in ATF_TEST_CASE_BODY()
234 ATF_REQUIRE(num_items == nitems(number)); in ATF_TEST_CASE_BODY()
240 ATF_REQUIRE_EQ(num_items, nitems(number)); in ATF_TEST_CASE_BODY()
288 ATF_REQUIRE(num_items == nitems(testnvl)); in ATF_TEST_CASE_BODY()
346 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
351 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
362 nvlist_add_bool_array(src, "nvl/bool", testbool, nitems(testbool)); in ATF_TEST_CASE_BODY()
368 nitems(string_arr)); in ATF_TEST_CASE_BODY()
373 nvlist_add_descriptor_array(src, "nvl/fd", testfd, nitems(testfd)); in ATF_TEST_CASE_BODY()
379 nitems(number)); in ATF_TEST_CASE_BODY()
385 (const nvlist_t * const *)testnvl, nitems(testnvl)); in ATF_TEST_CASE_BODY()
394 ATF_REQUIRE_EQ(num_items, nitems(testbool)); in ATF_TEST_CASE_BODY()
403 ATF_REQUIRE_EQ(num_items, nitems(string_arr)); in ATF_TEST_CASE_BODY()
419 ATF_REQUIRE_EQ(num_items, nitems(testfd)); in ATF_TEST_CASE_BODY()
426 ATF_REQUIRE_EQ(num_items, nitems(number)); in ATF_TEST_CASE_BODY()
436 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
444 for (i = 0; i < nitems(testfd); i++) { in ATF_TEST_CASE_BODY()
447 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
775 for (i = 0; i < nitems(test); i++) { in ATF_TEST_CASE_BODY()
783 nvlist_add_nvlist_array(nvl, "nvl/nvlist_array", test, nitems(test)); in ATF_TEST_CASE_BODY()
788 nitems(test)); in ATF_TEST_CASE_BODY()
802 } else if (index >= 1 && index <= nitems(test)) { in ATF_TEST_CASE_BODY()
804 } else if (index == nitems(test) + 1) { in ATF_TEST_CASE_BODY()
806 } else if (index == nitems(test) + 2) { in ATF_TEST_CASE_BODY()
808 } else if (index >= nitems(test) + 3 && in ATF_TEST_CASE_BODY()
809 index <= 2 * nitems(test) + 2) { in ATF_TEST_CASE_BODY()
811 } else if (index == 2 * nitems(test) + 3) { in ATF_TEST_CASE_BODY()
827 for (i = 0; i < nitems(test); i++) in ATF_TEST_CASE_BODY()
917 for (i = 0; i < nitems(testbool); i++) in ATF_TEST_CASE_BODY()
926 nvlist_add_bool_array(nvl, key, testbool, nitems(testbool)); in ATF_TEST_CASE_BODY()
940 ATF_REQUIRE_EQ(count, nitems(testbool)); in ATF_TEST_CASE_BODY()
982 ATF_REQUIRE_EQ(count, nitems(number)); in ATF_TEST_CASE_BODY()
1013 for (i = 0; i < nitems(desc); i++) { in ATF_TEST_CASE_BODY()
1023 nvlist_add_descriptor_array(nvl, key, desc, nitems(desc)); in ATF_TEST_CASE_BODY()
1030 for (i = 0; i < nitems(desc); i++) in ATF_TEST_CASE_BODY()
1045 ATF_REQUIRE_EQ(num_items, nitems(desc)); in ATF_TEST_CASE_BODY()
1074 nvlist_add_string_array(nvl, key, string_arr, nitems(string_arr)); in ATF_TEST_CASE_BODY()
1088 ATF_REQUIRE_EQ(count, nitems(string_arr)); in ATF_TEST_CASE_BODY()
1110 for (i = 0; i < nitems(testnvl); i++) { in ATF_TEST_CASE_BODY()
1140 ATF_REQUIRE_EQ(num_items, nitems(testnvl)); in ATF_TEST_CASE_BODY()
1158 for (i = 0; i < nitems(testnvl); i++) in ATF_TEST_CASE_BODY()