PHP Class Google\Cloud\Dev\Snippet\Coverage\Coverage

ファイルを表示 Open project: GoogleCloudPlatform/gcloud-php Class Usage Examples

Protected Properties

Property Type Description
$scanner Google\Cloud\Dev\Snippet\Coverage\ScannerInterface

Public Methods

Method Description
__construct ( Google\Cloud\Dev\Snippet\Coverage\ScannerInterface $scanner )
buildListToCover ( ) : Snippet[] Creates a list of all snippets which should be covered.
cache ( $identifier )
cover ( string $identifier ) : void Mark a snippet as covered.
uncovered ( ) : Snippet[] Return a list of all snippets not marked a covered.

Method Details

__construct() public method

public __construct ( Google\Cloud\Dev\Snippet\Coverage\ScannerInterface $scanner )
$scanner Google\Cloud\Dev\Snippet\Coverage\ScannerInterface The scanner to use

buildListToCover() public method

Creates a list of all snippets which should be covered.
public buildListToCover ( ) : Snippet[]
return Google\Cloud\Dev\Snippet\Parser\Snippet[]

cache() public method

public cache ( $identifier )

cover() public method

Mark a snippet as covered.
public cover ( string $identifier ) : void
$identifier string The identifier of the snippet being covered.
return void

uncovered() public method

Return a list of all snippets not marked a covered.
public uncovered ( ) : Snippet[]
return Google\Cloud\Dev\Snippet\Parser\Snippet[]

Property Details

$scanner protected_oe property

protected ScannerInterface,Google\Cloud\Dev\Snippet\Coverage $scanner
return Google\Cloud\Dev\Snippet\Coverage\ScannerInterface