testing/merge_scripts/code_coverage/merge_lib.py
def _get_profile_paths(input_dir,
                       input_extension,
                       input_filename_pattern='.*'):
  """Finds all the profiles in the given directory (recursively)."""
  paths = []
  for dir_path, _sub_dirs, file_names in os.walk(input_dir):
    paths.extend([
        os.path.join(dir_path, fn)
        for fn in file_names
        if fn.endswith(input_extension) and re.search(input_filename_pattern,fn)
    ])
  return paths
Finds all the profiles in the given directory (recursively).
Finds all the profiles in the given directory (recursively).
Finds all the profiles in the given directory ( recursively ) .
def _get_profile_paths(input_dir,
                       input_extension,
                       input_filename_pattern='.*'):
  paths = []
  for dir_path, _sub_dirs, file_names in os.walk(input_dir):
    paths.extend([
        os.path.join(dir_path, fn)
        for fn in file_names
        if fn.endswith(input_extension) and re.search(input_filename_pattern,fn)
    ])
  return paths
def _get_profile_paths ( input_dir , input_extension , input_filename_pattern = '.*' ) : paths = [ ] for dir_path , _sub_dirs , file_names in os . walk ( input_dir ) : paths . extend ( [ os . path . join ( dir_path , fn ) for fn in file_names if fn . endswith ( input_extension ) and re . search ( input_filename_pattern , fn ) ] ) return paths
Finds all the profiles in the given directory (recursively).
Finds all the profiles in the given directory ( recursively ) .
"""Finds all the profiles in the given directory (recursively)."""
input_dir
input_extension
input_filename_pattern