testing/merge_scripts/code_coverage/merge_lib.py
def merge_java_exec_files(input_dir, output_path, jacococli_path):
  """Merges generated .exec files to output_path.

  Args:
    input_dir (str): The path to traverse to find input files.
    output_path (str): Where to write the merged .exec file.
    jacococli_path: The path to jacococli.jar.

  Raises:
    CalledProcessError: merge command failed.
  """
  exec_input_file_paths = _get_profile_paths(input_dir, '.exec')
  if not exec_input_file_paths:
    logging.info('No exec file found under %s', input_dir)
    return

  cmd = [_JAVA_PATH, '-jar', jacococli_path, 'merge']
  cmd.extend(exec_input_file_paths)
  cmd.extend(['--destfile', output_path])
  subprocess.check_call(cmd, stderr=subprocess.STDOUT)
Merges generated .exec files to output_path.

  Args:
    input_dir (str): The path to traverse to find input files.
    output_path (str): Where to write the merged .exec file.
    jacococli_path: The path to jacococli.jar.

  Raises:
    CalledProcessError: merge command failed.
  
Merges generated .exec files to output_path.
Merges generated . exec files to output_path .
def merge_java_exec_files(input_dir, output_path, jacococli_path):
  exec_input_file_paths = _get_profile_paths(input_dir, '.exec')
  if not exec_input_file_paths:
    logging.info('No exec file found under %s', input_dir)
    return
  cmd = [_JAVA_PATH, '-jar', jacococli_path, 'merge']
  cmd.extend(exec_input_file_paths)
  cmd.extend(['--destfile', output_path])
  subprocess.check_call(cmd, stderr=subprocess.STDOUT)
def merge_java_exec_files ( input_dir , output_path , jacococli_path ) : exec_input_file_paths = _get_profile_paths ( input_dir , '.exec' ) if not exec_input_file_paths : logging . info ( 'No exec file found under %s' , input_dir ) return cmd = [ _JAVA_PATH , '-jar' , jacococli_path , 'merge' ] cmd . extend ( exec_input_file_paths ) cmd . extend ( [ '--destfile' , output_path ] ) subprocess . check_call ( cmd , stderr = subprocess . STDOUT )
Merges generated .exec files to output_path.
Merges generated . exec files to output_path .
"""Merges generated .exec files to output_path.

  Args:
    input_dir (str): The path to traverse to find input files.
    output_path (str): Where to write the merged .exec file.
    jacococli_path: The path to jacococli.jar.

  Raises:
    CalledProcessError: merge command failed.
  """
merge command failed.
merge command failed .
CalledProcessError
input_dir
The path to traverse to find input files.
The path to traverse to find input files .
output_path
None
jacococli_path
The path to jacococli.jar.
The path to jacococli . jar .