index.js
function parseBRDA (currentCoverageFile, prefixSplit) {
  var numberSplit = splitNumbers(prefixSplit)
  var lineNumber = parseInt(numberSplit[0], 10)
  var blockNumber = parseInt(numberSplit[1], 10)
  var branchNumber = parseInt(numberSplit[2], 10)

  var existingBRDA = findBRDA(currentCoverageFile.BRDARecords,
    blockNumber, branchNumber, lineNumber)

  // Special case, hits might be a '-'. This means that the code block
  // where the branch was contained was never executed at all (as opposed
  // to the code being executed, but the branch not being taken). Keep
  // it as a string and let mergedBRDAHits work it out.
  var hits = numberSplit[3]

  if (existingBRDA) {
    existingBRDA.hits = mergedBRDAHits(existingBRDA.hits, hits)
    return
  }

  currentCoverageFile.BRDARecords.push(new BRDA(lineNumber, blockNumber, branchNumber, hits))
}
function parseBRDA (currentCoverageFile, prefixSplit) {
  var numberSplit = splitNumbers(prefixSplit)
  var lineNumber = parseInt(numberSplit[0], 10)
  var blockNumber = parseInt(numberSplit[1], 10)
  var branchNumber = parseInt(numberSplit[2], 10)

  var existingBRDA = findBRDA(currentCoverageFile.BRDARecords,
    blockNumber, branchNumber, lineNumber)

  // Special case, hits might be a '-'. This means that the code block
  // where the branch was contained was never executed at all (as opposed
  // to the code being executed, but the branch not being taken). Keep
  // it as a string and let mergedBRDAHits work it out.
  var hits = numberSplit[3]

  if (existingBRDA) {
    existingBRDA.hits = mergedBRDAHits(existingBRDA.hits, hits)
    return
  }

  currentCoverageFile.BRDARecords.push(new BRDA(lineNumber, blockNumber, branchNumber, hits))
}
function parseBRDA ( currentCoverageFile , prefixSplit ) { var numberSplit = splitNumbers ( prefixSplit ) var lineNumber = parseInt ( numberSplit [ 0 ] , 10 ) var blockNumber = parseInt ( numberSplit [ 1 ] , 10 ) var branchNumber = parseInt ( numberSplit [ 2 ] , 10 ) var existingBRDA = findBRDA ( currentCoverageFile . BRDARecords , blockNumber , branchNumber , lineNumber ) // Special case, hits might be a '-'. This means that the code block // where the branch was contained was never executed at all (as opposed // to the code being executed, but the branch not being taken). Keep // it as a string and let mergedBRDAHits work it out. var hits = numberSplit [ 3 ] if ( existingBRDA ) { existingBRDA . hits = mergedBRDAHits ( existingBRDA . hits , hits ) return } currentCoverageFile . BRDARecords . push ( new BRDA ( lineNumber , blockNumber , branchNumber , hits ) ) }
Parses a BRDA section

@param {CoverageFile} currentCoverageFile
@param {string[]}     prefixSplit
Parses a BRDA section