Select Git revision
test_unit_cfood.yml
-
Florian Spreckelsen authoredFlorian Spreckelsen authored
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