tools/code_coverage/coverage_test.py
def verify_file_view(self, filepath):
    """Asserts that a given file view looks correct."""
    # There must be hundreds of '.*crypto.*' files and 10+ of '.*libpng.*'.
    with open(filepath) as f:
      data = f.read()

    self.assertGreater(data.count('crypto'), 100)
    self.assertGreater(data.count('libpng'), 10)
Asserts that a given file view looks correct.
Asserts that a given file view looks correct.
Asserts that a given file view looks correct .
def verify_file_view(self, filepath):
    with open(filepath) as f:
      data = f.read()
    self.assertGreater(data.count('crypto'), 100)
    self.assertGreater(data.count('libpng'), 10)
def verify_file_view ( self , filepath ) : with open ( filepath ) as f : data = f . read ( ) self . assertGreater ( data . count ( 'crypto' ) , 100 ) self . assertGreater ( data . count ( 'libpng' ) , 10 )
Asserts that a given file view looks correct.
Asserts that a given file view looks correct .
"""Asserts that a given file view looks correct.""" # There must be hundreds of '.*crypto.*' files and 10+ of '.*libpng.*'.
self
filepath