Lines Matching full:child
8 - check which properties are defined at which level (binding, child-binding,
14 or compatible string (at the binding, child-binding, etc, levels)
40 inherited at the child-binding levels: this seems consistent,
43 string inherited at the child-binding levels, order of inclusion matters,
99 """Load YAML file as Binding instance, and returns its child-binding.
100 The child-binding must exist.
163 If the binding has a child-binding, also recursively verify child-bindings.
210 # Child-Binding level.
214 "child-prop-1",
215 "child-prop-2",
216 "child-prop-enum",
217 "child-prop-req",
218 "child-prop-const",
219 "child-prop-default",
221 propspec = child_binding.prop2specs["child-prop-1"]
222 verify_expected_propspec(propspec, expect_desc="Base child-prop 1.")
223 propspec = child_binding.prop2specs["child-prop-2"]
225 propspec = child_binding.prop2specs["child-prop-enum"]
227 propspec = child_binding.prop2specs["child-prop-const"]
229 propspec = child_binding.prop2specs["child-prop-req"]
231 propspec = child_binding.prop2specs["child-prop-default"]
271 child-binding:
274 child-binding:
330 # Child-Binding level.
335 "child-prop-1",
336 "child-prop-2",
337 "child-prop-enum",
338 "child-prop-req",
339 "child-prop-const",
340 "child-prop-default",
341 "child-prop-new",
343 propspec = child_binding.prop2specs["child-prop-1"]
347 expect_desc="Overwritten description (child).",
350 propspec = child_binding.prop2specs["child-prop-2"]
355 expect_desc="New description (child).",
359 propspec = child_binding.prop2specs["child-prop-enum"]
368 propspec = child_binding.prop2specs["child-prop-const"]
370 propspec = child_binding.prop2specs["child-prop-req"]
372 propspec = child_binding.prop2specs["child-prop-default"]
376 propspec = child_binding.prop2specs["child-prop-new"]
432 Base specifications are included at the binding, child-binding
433 and child-binding levels:
436 child-binding:
438 child-binding:
442 at the child-binding level.
448 "child-prop-1",
449 "child-prop-2",
450 "child-prop-enum",
451 # From "child-binding: include:" element.
458 propspec = binding.prop2specs["child-prop-2"]
460 propspec = binding.prop2specs["child-prop-enum"]
463 propspec = binding.prop2specs["child-prop-1"]
466 expect_desc="Base child-prop 1.",
482 expect_desc="New description (child).",
510 # From "child-binding: include:" element.
511 "child-prop-1",
512 "child-prop-2",
513 "child-prop-enum",
514 # From "child-binding: child-binding: include:" element.
529 propspec = binding.prop2specs["child-prop-2"]
531 propspec = binding.prop2specs["child-prop-enum"]
541 propspec = binding.prop2specs["child-prop-1"]
544 expect_desc="Base child-prop 1.",
585 # From "child-binding: include:" element.
586 "child-prop-1",
587 "child-prop-2",
588 "child-prop-enum",
589 # From "child-binding: child-binding: include:" element.
596 propspec = binding.prop2specs["child-prop-1"]
597 verify_expected_propspec(propspec, expect_desc="Base child-prop 1.")
598 propspec = binding.prop2specs["child-prop-2"]
600 propspec = binding.prop2specs["child-prop-enum"]
675 at the child-binding level.
682 "child-prop-1",
685 "child-prop-enum",
687 "child-prop-default",
689 "child-prop-thing",
691 "child-prop-diamond",
694 propspec = binding.prop2specs["child-prop-1"]
700 expect_desc="Overwritten description (child).",
705 propspec = binding.prop2specs["child-prop-enum"]
715 expect_desc="Overwritten in diamond.yaml (child).",
719 propspec = binding.prop2specs["child-prop-default"]
722 propspec = binding.prop2specs["child-prop-thing"]
723 verify_expected_propspec(propspec, expect_desc="Thing child-binding property.")
726 propspec = binding.prop2specs["child-prop-diamond"]
820 """Test whether we can overwrite a child-binding's description.
822 An including binding can overwrite an inherited child-binding's description.
825 at the child-binding level, the first "wins".
829 assert child_binding.description == "Child-binding description."
833 assert child_binding.description == "Child-binding description (base)."
837 """Test whether we can overwrite a child-binding's compatible string.
839 An including binding can overwrite an inherited child-binding's
843 at the child-binding level, the first "wins".
847 assert child_binding.compatible == "vnd,child-compat-desc"
851 assert child_binding.compatible == "vnd,child-compat-desc-base"
902 # Child-binding level.
905 assert {"child-prop-1", "child-prop-2"} == set(child_binding.prop2specs.keys())
908 assert {"child-prop-2", "child-prop-3"} == set(child_binding.prop2specs.keys())
1002 assert {"child-prop-2"} == set(child_binding.prop2specs.keys())
1021 assert "child-prop-1" in str(e)
1043 assert "child-prop-const" in str(e)
1065 assert "child-prop-req" in str(e)
1087 assert "child-prop-default" in str(e)
1109 assert "child-prop-enum" in str(e)
1125 from top-level binding files down to their child bindings.