parameters: (resultfile, test)
docstring: Logs the result of a test started by StartTest(), or a disabled test
    configuration.
  
    Args:
      resultfile: File object for .cc file that results are written to.
      test: An instance of the dictionary returned by StartTest(), a
            configuration from ExtractTestConfigs().
docstring_summary: Logs the result of a test started by StartTest(), or a disabled test
    configuration.
docstring_tokens: Logs the result of a test started by StartTest () or a disabled test configuration .
function: def PassTest(resultfile, test):
    """Logs the result of a test started by StartTest(), or a disabled test
    configuration.
  
    Args:
      resultfile: File object for .cc file that results are written to.
      test: An instance of the dictionary returned by StartTest(), a
            configuration from ExtractTestConfigs().
    """
    # The 'started_at' key is only added if a test has been started.
    if 'started_at' in test:
      resultfile.write(SUCCESS_GUNIT_TEMPLATE % (
          test['suite_name'], test['name'],
          test['finished_at'] - test['started_at'],
          test['started_at'], test['finished_at']))
    else:
      resultfile.write(DISABLED_GUNIT_TEMPLATE % (
          test['suite_name'], test['name']))
function_tokens: def PassTest ( resultfile , test ) : # The 'started_at' key is only added if a test has been started. if 'started_at' in test : resultfile . write ( SUCCESS_GUNIT_TEMPLATE % ( test [ 'suite_name' ] , test [ 'name' ] , test [ 'finished_at' ] - test [ 'started_at' ] , test [ 'started_at' ] , test [ 'finished_at' ] ) ) else : resultfile . write ( DISABLED_GUNIT_TEMPLATE % ( test [ 'suite_name' ] , test [ 'name' ] ) )