def _IsTestFilename(filename):
 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
determines if the given filename has a suffix that identifies it as a test .