Home
last modified time | relevance | path

Searched refs:lys_parse_mem (Results 1 – 25 of 33) sorted by relevance

12

/dports/net/libyang/libyang-1.0.240/tests/schema/
H A Dtest_extensions.c159 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_module_sub_yin()
212 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_module_sub_yang()
254 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_container_sub_yin()
284 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_container_sub_yang()
392 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_leaf_sub_yin()
605 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_leaflist_sub_yin()
783 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_list_sub_yin()
914 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_anydata_sub_yin()
1071 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_choice_sub_yin()
1299 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_uses_sub_yin()
[all …]
H A Dtest_typedef.c196 mod = lys_parse_mem(st->ctx, yin_bits, LYS_IN_YIN); in test_typedef_11in10()
248 mod = lys_parse_mem(st->ctx, schema, LYS_IN_YANG); in test_typedef_11_multidents_yang()
288 mod = lys_parse_mem(st->ctx, schema, LYS_IN_YIN); in test_typedef_11_multidents_yin()
404 mod = lys_parse_mem(st->ctx, enums1, LYS_IN_YIN); in test_typedef_11_enums_yin()
408 mod = lys_parse_mem(st->ctx, enums2, LYS_IN_YIN); in test_typedef_11_enums_yin()
412 mod = lys_parse_mem(st->ctx, enums3, LYS_IN_YIN); in test_typedef_11_enums_yin()
416 mod = lys_parse_mem(st->ctx, enums4, LYS_IN_YIN); in test_typedef_11_enums_yin()
520 mod = lys_parse_mem(st->ctx, bits1, LYS_IN_YIN); in test_typedef_11_bits_yin()
524 mod = lys_parse_mem(st->ctx, bits2, LYS_IN_YIN); in test_typedef_11_bits_yin()
528 mod = lys_parse_mem(st->ctx, bits3, LYS_IN_YIN); in test_typedef_11_bits_yin()
[all …]
H A Dtest_include.c76 assert_ptr_equal(lys_parse_mem(ctx, sch_yin, LYS_IN_YIN), NULL); in test_mult_revisions()
77 assert_ptr_not_equal(lys_parse_mem(ctx, sch_correct_yin, LYS_IN_YIN), NULL); in test_mult_revisions()
82 assert_ptr_equal(lys_parse_mem(ctx, sch_yang, LYS_IN_YANG), NULL); in test_mult_revisions()
83 assert_ptr_not_equal(lys_parse_mem(ctx, sch_correct_yang, LYS_IN_YANG), NULL); in test_mult_revisions()
100 assert_ptr_equal(lys_parse_mem(ctx, sch_yin, LYS_IN_YIN), NULL); in test_circular_include()
105 assert_ptr_equal(lys_parse_mem(ctx, sch_yang, LYS_IN_YANG), NULL); in test_circular_include()
H A Dtest_leaflist.c98 assert_ptr_equal(lys_parse_mem(ctx, yin_cfg, LYS_IN_YIN), NULL); in test_multdfltvalues_yin()
99 assert_ptr_equal(lys_parse_mem(ctx, yin_status_10, LYS_IN_YIN), NULL); in test_multdfltvalues_yin()
100 assert_ptr_not_equal(lys_parse_mem(ctx, yin_status, LYS_IN_YIN), NULL); in test_multdfltvalues_yin()
162 assert_ptr_equal(lys_parse_mem(ctx, yang_cfg, LYS_IN_YANG), NULL); in test_multdfltvalues_yang()
163 assert_ptr_equal(lys_parse_mem(ctx, yang_status_10, LYS_IN_YANG), NULL); in test_multdfltvalues_yang()
164 assert_ptr_not_equal(lys_parse_mem(ctx, yang_status, LYS_IN_YANG), NULL); in test_multdfltvalues_yang()
H A Dtest_conformance.c492 assert_ptr_equal(lys_parse_mem(ctx, yin1, LYS_IN_YIN), NULL); in test_revision_date_yin()
495 assert_ptr_equal(lys_parse_mem(ctx, yin2, LYS_IN_YIN), NULL); in test_revision_date_yin()
498 assert_ptr_equal(lys_parse_mem(ctx, yin3, LYS_IN_YIN), NULL); in test_revision_date_yin()
502 assert_ptr_not_equal(lys_parse_mem(ctx, yin4, LYS_IN_YIN), NULL); in test_revision_date_yin()
503 assert_ptr_not_equal(lys_parse_mem(ctx, yin5, LYS_IN_YIN), NULL); in test_revision_date_yin()
504 assert_ptr_not_equal(lys_parse_mem(ctx, yin6, LYS_IN_YIN), NULL); in test_revision_date_yin()
537 assert_ptr_equal(lys_parse_mem(ctx, yang1, LYS_IN_YANG), NULL); in test_revision_date_yang()
540 assert_ptr_equal(lys_parse_mem(ctx, yang2, LYS_IN_YANG), NULL); in test_revision_date_yang()
543 assert_ptr_equal(lys_parse_mem(ctx, yang3, LYS_IN_YANG), NULL); in test_revision_date_yang()
547 assert_ptr_not_equal(lys_parse_mem(ctx, yang4, LYS_IN_YANG), NULL); in test_revision_date_yang()
[all …]
H A Dtest_status.c159 assert_ptr_equal(NULL, lys_parse_mem(st->ctx, yin_fail3, LYS_IN_YIN)); in test_status_yin()
164 assert_ptr_equal(NULL, lys_parse_mem(st->ctx, yin_fail2, LYS_IN_YIN)); in test_status_yin()
169 assert_ptr_equal(NULL, lys_parse_mem(st->ctx, yin_fail1, LYS_IN_YIN)); in test_status_yin()
174 assert_ptr_not_equal(NULL, lys_parse_mem(st->ctx, yin, LYS_IN_YIN)); in test_status_yin()
277 assert_ptr_equal(NULL, lys_parse_mem(st->ctx, yang_fail3, LYS_IN_YANG)); in test_status_yang()
282 assert_ptr_equal(NULL, lys_parse_mem(st->ctx, yang_fail2, LYS_IN_YANG)); in test_status_yang()
287 assert_ptr_equal(NULL, lys_parse_mem(st->ctx, yang_fail1, LYS_IN_YANG)); in test_status_yang()
292 assert_ptr_not_equal(NULL, lys_parse_mem(st->ctx, yang, LYS_IN_YANG)); in test_status_yang()
H A Dtest_feature.c164 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_circle1()
177 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_circle2()
193 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_inval_expr1()
209 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_inval_expr2()
225 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_inval_expr3()
241 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_inval_expr4()
256 assert_null(lys_parse_mem(ctx, yang, LYS_IN_YANG)); in test_inval_expr5()
H A Dtest_import.c85 assert_ptr_equal(lys_parse_mem(ctx, sch_yang, LYS_IN_YANG), NULL); in test_mult_revisions()
86 assert_ptr_not_equal(lys_parse_mem(ctx, sch_correct_yang, LYS_IN_YANG), NULL); in test_mult_revisions()
91 assert_ptr_equal(lys_parse_mem(ctx, sch_yin, LYS_IN_YIN), NULL); in test_mult_revisions()
92 assert_ptr_not_equal(lys_parse_mem(ctx, sch_correct_yin, LYS_IN_YIN), NULL); in test_mult_revisions()
H A Dtest_printer.c503 modyang2 = lys_parse_mem(ctx2, schema, LYS_IN_YIN); in test_parse_yin_with_unique()
527 modyang2 = lys_parse_mem(ctx2, schema, LYS_IN_YANG); in test_parse_yang_with_unique()
556 modyang2 = lys_parse_mem(ctx2, schema, LYS_IN_YIN); in test_parse_yin_with_submodule_types()
585 modyang2 = lys_parse_mem(ctx2, schema, LYS_IN_YANG); in test_parse_yang_with_submodule_types()
619 modyang2 = lys_parse_mem(ctx2, schema, LYS_IN_YIN); in test_parse_yin_with_submodule_grouping_idref_default()
656 modyang2 = lys_parse_mem(ctx2, schema, LYS_IN_YANG); in test_parse_yang_with_submodule_grouping_idref_default()
/dports/net/libyang/libyang-1.0.240/tests/api/
H A Dtest_tree_schema.c366 module = lys_parse_mem(ctx, lys_module_a, yang_format); in test_lys_parse_mem()
380 module = lys_parse_mem(ctx, lys_module_b, LYS_IN_YANG); in test_lys_parse_mem()
430 module = lys_parse_mem(ctx, lys_module_a, LYS_IN_YIN); in test_lys_parse_fd()
489 module = lys_parse_mem(ctx, lys_module_a, LYS_IN_YIN); in test_lys_features_list()
500 module = lys_parse_mem(ctx, lys_module_b, LYS_IN_YANG); in test_lys_features_list()
520 module = lys_parse_mem(ctx, lys_module_a, yang_format); in test_lys_features_enable()
545 module = lys_parse_mem(ctx, lys_module_a, yang_format); in test_lys_features_disable()
579 module = lys_parse_mem(ctx, lys_module_a, yang_format); in test_lys_features_state()
617 module = lys_parse_mem(ctx, lys_module_a, yang_format); in test_lys_is_disabled()
665 module = lys_parse_mem(ctx, lys_module_a, LYS_IN_YIN); in test_lys_getnext()
[all …]
H A Dtest_tree_data_merge.c208 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge2()
252 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge3()
294 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge4()
364 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge5()
443 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge6()
525 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge_to_trgctx1()
526 assert_ptr_not_equal(lys_parse_mem(st->ctx2, sch, LYS_IN_YANG), NULL); in test_merge_to_trgctx1()
567 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge_to_trgctx2()
568 assert_ptr_not_equal(lys_parse_mem(st->ctx2, sch, LYS_IN_YANG), NULL); in test_merge_to_trgctx2()
611 assert_ptr_not_equal(lys_parse_mem(st->ctx1, sch, LYS_IN_YANG), NULL); in test_merge_to_ctx()
[all …]
H A Dtest_tree_data_dup.c83 mod = lys_parse_mem(st->ctx1, sch, LYS_IN_YANG); in test_dup_to_ctx()
96 mod = lys_parse_mem(st->ctx2, sch, LYS_IN_YANG); in test_dup_to_ctx()
129 mod = lys_parse_mem(st->ctx1, sch, LYS_IN_YANG); in test_dup_to_ctx_bits()
131 mod = lys_parse_mem(st->ctx2, sch, LYS_IN_YANG); in test_dup_to_ctx_bits()
186 mod = lys_parse_mem(st->ctx1, sch, LYS_IN_YANG); in test_dup_to_ctx_leafrefs()
188 mod = lys_parse_mem(st->ctx2, sch, LYS_IN_YANG); in test_dup_to_ctx_leafrefs()
H A Dtest_tree_data.c193 if (module && !lys_parse_mem(ctx, module, yang_format)) { in generic_init()
329 if (!lys_parse_mem(ctx, lys_module_a, yang_format)) { in test_lyd_parse_mem()
372 if (!lys_parse_mem(ctx, lys_module_a, yang_format)) { in test_lyd_parse_fd()
421 if (!lys_parse_mem(ctx, lys_module_a, yang_format)) { in test_lyd_parse_path()
461 module = lys_parse_mem(ctx, lys_module_a, yang_format); in test_lyd_parse_xml()
1084 mod = lys_parse_mem(ctx, yang, LYS_IN_YANG); in test_lyd_find_sibling()
1737 assert_ptr_not_equal(lys_parse_mem(ctx, yang, LYS_IN_YANG), 0); in test_lyd_leaf_type()
1894 lys_parse_mem(new_ctx, lys_module_a, LYS_IN_YIN); in test_lyd_dup_to_ctx()
1935 mod = lys_parse_mem(st->ctx, test_anydata, LYS_YANG); in test_lyd_new_anydata()
1966 mod = lys_parse_mem(st->ctx, test_anydata, LYS_YANG); in test_lyd_new_output_anydata()
H A Dtest_dict.c67 if (!lys_parse_mem(ctx, schema, yang_format)) { in generic_init()
H A Dtest_libyang.c622 assert_ptr_not_equal((mod = lys_parse_mem(ctx, yang_main, LYS_IN_YANG)), NULL); in test_ly_ctx_remove_module2()
623 assert_ptr_not_equal(lys_parse_mem(ctx, yang_dep, LYS_IN_YANG), NULL); in test_ly_ctx_remove_module2()
687 modx = lys_parse_mem(ctx, yang_x, LYS_IN_YANG); in test_lys_set_disabled()
689 mody = lys_parse_mem(ctx, yang_y, LYS_IN_YANG); in test_lys_set_disabled()
/dports/net/libyang/libyang-1.0.240/tests/data/
H A Dtest_metadata.c88 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_leafref_type()
109 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_unknown_metadata_xml()
142 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_unknown_metadata_json()
362 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig1_xml()
393 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig1_json()
425 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig2_xml()
459 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig2_json()
489 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig3_xml()
520 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig3_json()
551 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_nc_editconfig4_xml()
[all …]
H A Dtest_values.c90 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_default_int()
133 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_default_int_trusted()
169 assert_ptr_not_equal(lys_parse_mem(st->ctx, yang1, LYS_IN_YANG), NULL); in test_xmltojson_identityref()
170 assert_ptr_not_equal(lys_parse_mem(st->ctx, yang2, LYS_IN_YANG), NULL); in test_xmltojson_identityref()
193 assert_ptr_not_equal(lys_parse_mem(st->ctx, yang, LYS_IN_YANG), NULL); in test_xmltojson_identityref2()
226 assert_ptr_not_equal(lys_parse_mem(st->ctx, yang1, LYS_IN_YANG), NULL); in test_xmltojson_instanceid()
227 assert_ptr_not_equal(lys_parse_mem(st->ctx, yang2, LYS_IN_YANG), NULL); in test_xmltojson_instanceid()
315 assert_ptr_not_equal(lys_parse_mem(st->ctx, yang, LYS_IN_YANG), NULL); in test_canonical()
371 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_validate_value()
454 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_xmltojson_anydata()
[all …]
H A Dtest_yang_data_ns.c68 st->mod1 = lys_parse_mem(st->ctx, yang1, LYS_IN_YANG); in setup_f()
73 st->mod2 = lys_parse_mem(st->ctx, yang2, LYS_IN_YANG); in setup_f()
H A Dtest_defaults.c586 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_leaflist_in10()
590 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_leaflist_in10()
616 mod = lys_parse_mem(st->ctx, yin, LYS_IN_YIN); in test_leaflist_yin()
655 mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in test_leaflist_yang()
H A Dtest_unique.c164 assert_ptr_equal(lys_parse_mem(st->ctx, sch, LYS_IN_YANG), NULL); in test_schema_inpath()
H A Dtest_data_initialization.c74 if (!lys_parse_mem(ctx, schema, yang_format)) { in generic_init()
H A Dtest_yang_data.c79 st->mod = lys_parse_mem(st->ctx, yang, LYS_IN_YANG); in setup_f()
H A Dtest_json.c619 mod = lys_parse_mem(st->ctx, text_schema, LYS_IN_YIN); in test_parse_string()
/dports/net/libyang/libyang-1.0.240/tools/re/
H A Dmain.c266 mod = lys_parse_mem(ctx, modstr, LYS_IN_YANG); in main()
/dports/net/libyang/libyang-1.0.240/tests/internal/
H A Dtest_lyb.c343 assert_non_null(lys_parse_mem(st->ctx, test_origin, LYS_YANG)); in test_origin()
555 mod = lys_parse_mem(st->ctx, test_anydata, LYS_YANG); in test_anydata()

12