tools/metrics/histograms/expand_owners_unittest.py
def _GetSrcRelativePath(path):
  """Returns a(n) src-relative path for the given file path.

  Args:
    path: An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.

  Returns:
    A src-relative path, e.g.'src/tools/OWNERS'.
  """
  assert path.startswith(_GetToolsParentDir())
  return expand_owners.SRC + path[len(_GetToolsParentDir()) + 1:]
Returns a(n) src-relative path for the given file path.

  Args:
    path: An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.

  Returns:
    A src-relative path, e.g.'src/tools/OWNERS'.
  
Returns a(n) src-relative path for the given file path.
Returns a ( n ) src - relative path for the given file path .
def _GetSrcRelativePath(path):
  assert path.startswith(_GetToolsParentDir())
  return expand_owners.SRC + path[len(_GetToolsParentDir()) + 1:]
def _GetSrcRelativePath ( path ) : assert path . startswith ( _GetToolsParentDir ( ) ) return expand_owners . SRC + path [ len ( _GetToolsParentDir ( ) ) + 1 : ]
Returns a(n) src-relative path for the given file path.
Returns a ( n ) src - relative path for the given file path .
"""Returns a(n) src-relative path for the given file path.

  Args:
    path: An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.

  Returns:
    A src-relative path, e.g.'src/tools/OWNERS'.
  """
A src-relative path, e.g.'src/tools/OWNERS'.
A src - relative path e . g . ' src / tools / OWNERS ' .
path
An absolute path, e.g. '/some/directory/subdirectory/tools/OWNERS'.
An absolute path e . g . ' / some / directory / subdirectory / tools / OWNERS ' .