diff options
Diffstat (limited to 'node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts')
-rw-r--r-- | node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts new file mode 100644 index 0000000..5fee68b --- /dev/null +++ b/node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts @@ -0,0 +1,21 @@ +import { FunctionCov, RangeCov, ScriptCov } from "./types"; +/** + * Compares two script coverages. + * + * The result corresponds to the comparison of their `url` value (alphabetical sort). + */ +export declare function compareScriptCovs(a: Readonly<ScriptCov>, b: Readonly<ScriptCov>): number; +/** + * Compares two function coverages. + * + * The result corresponds to the comparison of the root ranges. + */ +export declare function compareFunctionCovs(a: Readonly<FunctionCov>, b: Readonly<FunctionCov>): number; +/** + * Compares two range coverages. + * + * The ranges are first ordered by ascending `startOffset` and then by + * descending `endOffset`. + * This corresponds to a pre-order tree traversal. + */ +export declare function compareRangeCovs(a: Readonly<RangeCov>, b: Readonly<RangeCov>): number; |