Sha256: adbca55339e13d6144522537bb6d7969fd443bd89a93170bcd8720d7342ac6c1
Contents?: true
Size: 1.42 KB
Versions: 14
Compression:
Stored size: 1.42 KB
Contents
require 'fitting/statistics/cover_error_one_of' require 'fitting/records/unit/request' require 'fitting/storage/white_list' require 'fitting/records/documented/request' module Fitting class Statistics class TemplateCoverErrorOneOf def initialize(tested_requests, config) @tested_requests = tested_requests @config = config end def stats "#{white_statistics}\n\n" end def white_statistics @white_statistics ||= Fitting::Statistics::CoverErrorOneOf.new(white_unit) end def white_unit @white_unit_requests ||= documented_requests_white.inject([]) do |res, documented_request| res.push(Fitting::Records::Unit::Request.new(documented_request, @tested_requests)) end end def documented_requests_white @documented_requests_white ||= documented.find_all(&:white) end def documented @documented_requests ||= @config.tomogram.to_a.inject([]) do |res, tomogram_request| res.push(Fitting::Records::Documented::Request.new(tomogram_request, white_list.to_a)) end end def white_list @white_list ||= Fitting::Storage::WhiteList.new( @config.prefix, @config.white_list, @config.resource_white_list, @config.include_resources, @config.include_actions, @config.tomogram.to_resources ) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems