Sha256: 25349a9f1bb1584386beb7a6dd121caeed10314a4c9a20f06185a84abfc65c9e

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

require "bashcov/version"
require "bashcov/lexer"
require "bashcov/line"
require "bashcov/runner"
require "bashcov/xtrace"

module Bashcov
  class << self
    def root_directory
      Dir.getwd
    end

    def coverage_array(filename, fill = Line::UNCOVERED)
      lines = File.readlines(filename).size
      [fill] * lines
    end

    def link
      '<a href="https://github.com/infertux/bashcov">bashcov</a>'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bashcov-0.0.1 lib/bashcov.rb