class Fitting::Statistics::TemplateCoverErrorOneOf

Public Class Methods

new(tested_requests, config) click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 9
def initialize(tested_requests, config)
  @tested_requests = tested_requests
  @config = config
end

Public Instance Methods

documented() click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 32
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
documented_requests_white() click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 28
def documented_requests_white
  @documented_requests_white ||= documented.find_all(&:white)
end
stats() click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 14
def stats
  "#{white_statistics}\n\n"
end
white_list() click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 38
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
white_statistics() click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 18
def white_statistics
  @white_statistics ||= Fitting::Statistics::CoverErrorOneOf.new(white_unit)
end
white_unit() click to toggle source
# File lib/fitting/statistics/template_cover_error_one_of.rb, line 22
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