Lines Matching defs:cnvl
54 const nvlist_t *cnvl;
139 cnvl = nvlist_get_nvlist(nvl, "nvlist/nvlist");
140 CHECK(nvlist_get_bool(cnvl, "nvlist/bool/true") == true);
141 CHECK(nvlist_get_bool(cnvl, "nvlist/bool/false") == false);
142 CHECK(nvlist_get_number(cnvl, "nvlist/number/0") == 0);
143 CHECK(nvlist_get_number(cnvl, "nvlist/number/1") == 1);
144 CHECK((int)nvlist_get_number(cnvl, "nvlist/number/-1") == -1);
145 CHECK(nvlist_get_number(cnvl, "nvlist/number/UINT64_MAX") == UINT64_MAX);
146 CHECK((int64_t)nvlist_get_number(cnvl, "nvlist/number/INT64_MIN") == INT64_MIN);
147 CHECK((int64_t)nvlist_get_number(cnvl, "nvlist/number/INT64_MAX") == INT64_MAX);
148 CHECK(strcmp(nvlist_get_string(cnvl, "nvlist/string/"), "") == 0);
149 CHECK(strcmp(nvlist_get_string(cnvl, "nvlist/string/x"), "x") == 0);
150 CHECK(strcmp(nvlist_get_string(cnvl, "nvlist/string/abcdefghijklmnopqrstuvwxyz"), "abcdefghijklmnopqrstuvwxyz") == 0);
152 CHECK(memcmp(nvlist_get_binary(cnvl, "nvlist/binary/x", NULL), "x", 1) == 0);
153 CHECK(memcmp(nvlist_get_binary(cnvl, "nvlist/binary/x", &size), "x", 1) == 0);
155 CHECK(memcmp(nvlist_get_binary(cnvl, "nvlist/binary/abcdefghijklmnopqrstuvwxyz", NULL), "abcdefghijklmnopqrstuvwxyz", sizeof("abcdefghijklmnopqrstuvwxyz")) == 0);
156 CHECK(memcmp(nvlist_get_binary(cnvl, "nvlist/binary/abcdefghijklmnopqrstuvwxyz", &size), "abcdefghijklmnopqrstuvwxyz", sizeof("abcdefghijklmnopqrstuvwxyz")) == 0);