Contains coverage information for a single statement or line.
Contains coverage information for a single statement or line.
(branches statement-coverage)
Coverage from branches of this line or statement. If it's not a conditional, this will be empty.
Returns: BranchCoverage[]
Coverage from branches of this line or statement. If it's not a conditional, this will be empty. **Returns:** `BranchCoverage[]`
(executed? statement-coverage)
The number of times this statement was executed, or a boolean indicating whether it was executed if the exact count is unknown. If zero or false, the statement will be marked as un-covered.
Returns: number | boolean
The number of times this statement was executed, or a boolean indicating whether it was executed if the exact count is unknown. If zero or false, the statement will be marked as un-covered. **Returns:** `number | boolean`
(location statement-coverage)
Statement location.
Returns: Range | Position
Statement location. **Returns:** `Range | Position`
(set-branches! statement-coverage value)
Coverage from branches of this line or statement. If it's not a conditional, this will be empty.
Coverage from branches of this line or statement. If it's not a conditional, this will be empty.
(set-executed! statement-coverage value)
The number of times this statement was executed, or a boolean indicating whether it was executed if the exact count is unknown. If zero or false, the statement will be marked as un-covered.
The number of times this statement was executed, or a boolean indicating whether it was executed if the exact count is unknown. If zero or false, the statement will be marked as un-covered.
(set-location! statement-coverage value)
Statement location.
Statement location.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close