Skip to content
Snippets Groups Projects
Select Git revision
  • 294f8fb9dd5dba33a21447b3eaaba7a31643c6c7
  • main default protected
  • dev
  • f-unmod
  • f-checkidentical
  • f-simple-breakpoint
  • f-new-debug-tree
  • f-existing-file-id
  • f-no-ident
  • f-collect-problems
  • f-refactor-debug-tree
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.1
  • v0.10.0
  • v0.9.1
  • v0.9.0
  • v0.8.0
  • v0.7.1
  • v0.7.0
  • v0.6.0
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
  • v0.1.0
27 results

test_unit_cfood.yml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    test_unit_cfood.yml 1.01 KiB
    ---
    metadata:
      crawler-version: 0.9.0
    ---
    data:
      type: Dict
      match_name: '.*'
      records:
        MyRec:
          may_be_overwritten:
            value: "12"
            unit: K
      subtree:
        ValueWithUnit:
          type: TextElement
          match_name: ^value_with_unit$
          match_value: "^(?P<number>\\d+\\.?\\d*)\\s+(?P<unit>.+)"
          records:
            MyRec:
              value_with_unit:
                value: $number
                unit: $unit
        MayBeOverwritten:
          type: TextElement
          match_name: ^may_be_overwritten$
          match_value: "^(?P<number>\\d+\\.?\\d*)\\s+(?P<unit>.+)"
          records:
            MyRec:
              may_be_overwritten:
                value: $number
                unit: $unit
        ListOfValues:
          type: ListElement
          match_name: ^array_with_units$
          subtree:
            SingleValueWithUnit:
              type: TextElement
              match_value: "^(?P<number>\\d+\\.?\\d*)\\s+(?P<unit>.+)"
              records:
                MyRec:
                  list_with_unit:
                    value: +$number
                    unit: $unit