- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
29 lines
588 B
JavaScript
29 lines
588 B
JavaScript
module.exports = class CovBranch {
|
|
constructor (startLine, startCol, endLine, endCol, count) {
|
|
this.startLine = startLine
|
|
this.startCol = startCol
|
|
this.endLine = endLine
|
|
this.endCol = endCol
|
|
this.count = count
|
|
}
|
|
|
|
toIstanbul () {
|
|
const location = {
|
|
start: {
|
|
line: this.startLine,
|
|
column: this.startCol
|
|
},
|
|
end: {
|
|
line: this.endLine,
|
|
column: this.endCol
|
|
}
|
|
}
|
|
return {
|
|
type: 'branch',
|
|
line: this.startLine,
|
|
loc: location,
|
|
locations: [Object.assign({}, location)]
|
|
}
|
|
}
|
|
}
|