source: frontend/node_modules/v8-to-istanbul/lib/branch.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 588 bytes
Line 
1module.exports = class CovBranch {
2 constructor (startLine, startCol, endLine, endCol, count) {
3 this.startLine = startLine
4 this.startCol = startCol
5 this.endLine = endLine
6 this.endCol = endCol
7 this.count = count
8 }
9
10 toIstanbul () {
11 const location = {
12 start: {
13 line: this.startLine,
14 column: this.startCol
15 },
16 end: {
17 line: this.endLine,
18 column: this.endCol
19 }
20 }
21 return {
22 type: 'branch',
23 line: this.startLine,
24 loc: location,
25 locations: [Object.assign({}, location)]
26 }
27 }
28}
Note: See TracBrowser for help on using the repository browser.