• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libucl/tests/

Lines Matching defs:obj

44 	ucl_object_t *obj, *cur, *ar, *ar1, *ref, *test_obj, *comments;
71 obj = ucl_object_typed_new (UCL_OBJECT);
75 ucl_object_insert_key (obj, cur, "key0", 0, false);
77 assert (ucl_object_replace_key (obj, cur, "key0", 0, false));
81 ucl_object_insert_key (obj, cur, "key1", 0, false);
84 ucl_object_insert_key (obj, cur, "key2", 0, false);
86 ucl_object_insert_key (obj, cur, "key3", 0, false);
137 ucl_object_insert_key (obj, ar, "key4", 0, false);
141 ucl_object_insert_key (obj, cur, "key4", 0, false);
144 ucl_object_insert_key (obj, cur, "key5", 0, false);
146 ucl_object_insert_key (obj, cur, "key6", 0, false);
148 ucl_object_insert_key (obj, cur, "key7", 0, false);
151 ucl_object_insert_key (obj, cur, "key8", 0, false);
153 ucl_object_insert_key (obj, cur, "key9", 0, false);
155 ucl_object_insert_key (obj, cur, "key10", 0, false);
157 ucl_object_insert_key (obj, cur, "key11", 0, false);
159 ucl_object_insert_key (obj, cur, "key12", 0, false);
161 ucl_object_insert_key (obj, cur, "key13", 0, false);
163 ucl_object_insert_key (obj, cur, "k=3", 0, false);
164 ucl_object_insert_key (obj, ar1, "key14", 0, false);
166 ucl_object_insert_key (obj, cur, "key15", 0, false);
170 ucl_object_insert_key (obj, cur, "key16", 0, false);
171 test = ucl_object_lookup_any (obj, "key100", "key200", "key300", "key16", NULL);
173 test = ucl_object_lookup_len (obj, "key160", 5);
175 cur = ucl_object_pop_key (obj, "key16");
177 test = ucl_object_pop_key (obj, "key16");
179 test = ucl_object_lookup_len (obj, "key160", 5);
184 ucl_object_merge (obj, test_obj, true);
190 ucl_object_insert_key (obj, test_obj, "key17", 0, true);
193 ucl_object_insert_key (obj, cur, "key18", 0, true);
194 assert (ucl_object_delete_key (obj, "key18"));
195 assert (!ucl_object_delete_key (obj, "key18"));
197 ucl_object_insert_key (obj, cur, "key18\0\0", 7, true);
198 assert (ucl_object_lookup_len (obj, "key18\0\0", 7) == cur);
199 assert (ucl_object_lookup (obj, "key18") == NULL);
200 assert (ucl_object_lookup_len (obj, "key18\0\1", 7) == NULL);
201 assert (ucl_object_delete_keyl (obj, "key18\0\0", 7));
206 found = ucl_object_lookup (obj, "key17");
207 test = ucl_object_lookup (obj, "key16");
225 found = ucl_object_lookup_path (obj, "key4.1");
228 found = ucl_object_lookup_path (obj, ".key4.1");
231 found = ucl_object_lookup_path (obj, ".key4........1...");
234 found = ucl_object_lookup_path (obj, ".key4.3");
237 found = ucl_object_lookup_path (obj, "key9..key1");
241 it = ucl_object_iterate_new (obj);
277 assert (ucl_object_emit_full (obj, UCL_EMIT_CONFIG, fn, comments));
280 ucl_object_unref (obj);
303 obj = ucl_parser_get_object (parser);
305 ucl_object_unref (obj);