Sha256: d9b48c899a161bd6207e17cb088cdb4eab610a1b7665c855d9504f8e970eac7f

Contents?: true

Size: 1.36 KB

Versions: 13

Compression:

Stored size: 1.36 KB

Contents

!!! 5
html
  head
    title Coverage
    include script.html
    include style.html
  body
    #coverage
      h1#overview Coverage
      include menu

      #stats(class=coverageClass(cov.coverage))
        .percentage #{cov.coverage | 0}%
        .sloc= cov.sloc
        .hits= cov.hits
        .misses= cov.misses

      #files
        for file in cov.files
          .file
            h2(id=file.filename)= file.filename
            #stats(class=coverageClass(file.coverage))
              .percentage #{file.coverage | 0}%
              .sloc= file.sloc
              .hits= file.hits
              .misses= file.misses

            table#source
              thead
                tr
                  th Line
                  th Hits
                  th Source
              tbody
                for line, number in file.source
                  if line.coverage > 0
                    tr.hit 
                      td.line= number
                      td.hits= line.coverage
                      td.source= line.source
                  else if 0 === line.coverage
                    tr.miss 
                      td.line= number
                      td.hits 0
                      td.source= line.source
                  else
                    tr
                      td.line= number
                      td.hits
                      td.source= line.source || ' '

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
stylus-source-0.31.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.30.1 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.30.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.29.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.28.2 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.28.1 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.28.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.27.2 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.27.1 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.27.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.26.1 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.26.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade
stylus-source-0.25.0 vendor/node_modules/mocha/lib/reporters/templates/coverage.jade