testing/clusterfuzz/common/fuzzy_types.py
def FuzzListInString(s, separators=r", |,|; |;|\r\n|\s"):
  """Tries to interpret the string as a list, and fuzzes it if successful."""
  seps = re.findall(separators, s)
  if not seps:
    return s
  sep = random.choice(seps)  # Ones that appear often are more likely
  items = FuzzyList(s.split(sep))
  items.RandomMutation()
  return sep.join(items)
Tries to interpret the string as a list, and fuzzes it if successful.
Tries to interpret the string as a list, and fuzzes it if successful.
Tries to interpret the string as a list and fuzzes it if successful .
def FuzzListInString(s, separators=r", |,|; |;|\r\n|\s"):
  seps = re.findall(separators, s)
  if not seps:
    return s
  sep = random.choice(seps)  
  items = FuzzyList(s.split(sep))
  items.RandomMutation()
  return sep.join(items)
def FuzzListInString ( s , separators = r", |,|; |;|\r\n|\s" ) : seps = re . findall ( separators , s ) if not seps : return s sep = random . choice ( seps ) items = FuzzyList ( s . split ( sep ) ) items . RandomMutation ( ) return sep . join ( items )
Tries to interpret the string as a list, and fuzzes it if successful.
Tries to interpret the string as a list and fuzzes it if successful .
"""Tries to interpret the string as a list, and fuzzes it if successful.""" # Ones that appear often are more likely
s
separators