Home
last modified time | relevance | path

Searched refs:make_pattern (Results 1 – 2 of 2) sorted by relevance

/external/python/parse_type/tests/
Dtest_cardinality.py25 expected_pattern = Cardinality.one.make_pattern(pattern)
35 expected_pattern = Cardinality.zero_or_more.make_pattern(pattern)
40 expected_pattern = Cardinality.one_or_more.make_pattern(pattern)
45 expected = Cardinality.optional.make_pattern(pattern)
50 expected = Cardinality.many0.make_pattern(pattern)
55 expected = Cardinality.many.make_pattern(pattern)
65 (Cardinality.optional, "XXX", Cardinality.zero_or_one.make_pattern("XXX")),
66 (Cardinality.many0, "XXX", Cardinality.zero_or_more.make_pattern("XXX")),
67 (Cardinality.many, "XXX", Cardinality.one_or_more.make_pattern("XXX")),
71 expected_pattern = cardinality.make_pattern(pattern)
[all …]
/external/python/parse_type/parse_type/
Dcardinality.py51 def make_pattern(self, pattern, listsep=','): member in Cardinality
127 optional_pattern = cardinality.make_pattern(pattern)
154 many0_pattern = cardinality.make_pattern(pattern, listsep)
182 many_pattern = cardinality.make_pattern(pattern, listsep)