(filename)
Determines if the given filename has a suffix that identifies it as a test.

  Args:
    filename: The input filename.

  Returns:
    True if 'filename' looks like a test, False otherwise.
Determines if the given filename has a suffix that identifies it as a test.
Determines if the given filename has a suffix that identifies it as a test .
def _IsTestFilename(filename):
  """Determines if the given filename has a suffix that identifies it as a test.

  Args:
    filename: The input filename.

  Returns:
    True if 'filename' looks like a test, False otherwise.
  """
  if (filename.endswith('_test.cc') or
      filename.endswith('_unittest.cc') or
      filename.endswith('_regtest.cc')):
    return True
  else:
    return False
def _IsTestFilename ( filename ) : if ( filename . endswith ( '_test.cc' ) or filename . endswith ( '_unittest.cc' ) or filename . endswith ( '_regtest.cc' ) ) : return True else : return False