All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scoverage.report.StatementWriter.scala Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
package scoverage.report

import _root_.scoverage.MeasuredFile

import scala.xml.Node

/** @author Stephen Samuel */
class StatementWriter(mFile: MeasuredFile) {

  val GREEN = "#AEF1AE"
  val RED = "#F0ADAD"

  def output: Node = {

    def cellStyle(invoked: Boolean): String = invoked match {
      case true => s"background: $GREEN"
      case false => s"background: $RED"
    }

    {mFile.statements.toSeq.sortBy(_.line).map(stmt => {
      
    })}
    
Line Stmt Id Pos Tree Symbol Code
{stmt.line} {stmt.id} {stmt.start.toString} - {stmt.end.toString} {stmt.treeName} {stmt.symbolName} {stmt.desc}
} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy