-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
73 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export class CoverPoint { | ||
public file: string = ""; | ||
public hash: string = ""; | ||
public line: i32 = 0; | ||
public column: i32 = 0; | ||
public type!: string; | ||
public executed: boolean = false; | ||
} | ||
|
||
export class Coverage { | ||
public hashes: Map<string, CoverPoint> = new Map<string, CoverPoint>(); | ||
public points: i32 = 0; | ||
static SN: Coverage = new Coverage(); | ||
} | ||
|
||
export function __REGISTER(point: CoverPoint): void { | ||
Coverage.SN.points++; | ||
Coverage.SN.hashes.set(point.hash, point); | ||
} | ||
|
||
export function __COVER(hash: string): void { | ||
if (Coverage.SN.hashes.has(hash)) Coverage.SN.hashes.delete(hash); | ||
} | ||
|
||
export function __HASHES(): Map<string, CoverPoint> { | ||
return Coverage.SN.hashes; | ||
} | ||
|
||
export function __POINTS(): i32 { | ||
return Coverage.SN.points; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.