Home | History | Annotate | Download | only in testing

Lines Matching refs:pattern

333 def ExpandPattern(pattern, it):
334 """Return list of expanded pattern strings.
336 Each string is created by replacing all '%' in |pattern| with element of |it|.
338 return [pattern.replace("%", x) for x in it]
341 def Gen(pattern, n):
342 """Expands pattern replacing '%' with sequential integers.
348 return ", ".join(ExpandPattern(pattern, it))
351 def GenAlpha(pattern, n):
352 """Expands pattern replacing '%' with sequential small ASCII letters.
358 return ", ".join(ExpandPattern(pattern, it))
365 def GenTuple(pattern, n):
366 return Clean("Tuple%d<%s>" % (n, Gen(pattern, n)))