lucee.Componenttestbox.system.coverage.data.CoverageGenerator
Copyright Ortus Solutions, Corp www.ortussolutions.com I collect code coverage data for a directory of files and generate a query of data that can be consumed by different reporting interfaces.
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
any
|
beginCapture()
Reset system for a new test. |
any
|
configure()
Configure the main data collection class. |
any
|
endCapture([any leaveLineProfilingOn='false'])
End the capture of data. |
query
|
generateData(string pathToCapture, [any whitelist=''], [any blacklist=''])
|
any
|
isPathAllowed(string path, array whitelist, array blacklist)
Determines if a path is valid given the whitelist and black list. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Method Detail |
---|
Reset system for a new test. Turns on line coverage and resets in-memory statistics
Configure the main data collection class.
End the capture of data. Clears up memory and optionally turns off line profiling
leaveLineProfilingOn
- Set to true to leave line profiling enabled on the serverpathToCapture
- The full path to a folder of code. Searched recursivleywhitelist
- Comma-delimeted list or array of file paths to includeblacklist
- Comma-delimeted list or array of file paths to excludeDetermines if a path is valid given the whitelist and black list. White and black lists use standard file globbing patterns.
path
- The relative path to check.whitelist
- paths to allowblacklist
- paths to exclude