Sha256: 7d7f3df1dfb9db3906b40eb87e9f3b7155a84d6d56f22bce433d36259b75ae55
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
require 'uncool/generator/abstract' module Uncool # KO test generator. class GeneratorKO < GeneratorAbstract # def generate code = [] mapping.each do |target, units| #next if /Lemon::Test::Suite/ =~ target.to_s code << "require 'lemon/syntax/ko'\n" code << "testcase #{target} do" units.each do |(unit, yes)| next if unit.covered? and !covered? next if unit.private? and !private? if unit.function? code << "\n metaunit :#{unit.method} do\n\n end" else code << "\n unit :#{unit.method} do\n\n end" end end code << "\nend\n" end code.join("\n") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uncool-1.0.1 | lib/uncool/generator/ko.rb |
uncool-1.0.0 | lib/uncool/generator/ko.rb |