Represents an entire report. SSLTestCases add results to it, which it can later format.
# File lib/ssl_test/ssl_test_report.rb, line 6 def initialize @results = [] end
# File lib/ssl_test/ssl_test_report.rb, line 10 def add_result(result) @results << result end
# File lib/ssl_test/ssl_test_report.rb, line 14 def print_results(out) out.puts "Alias Description P/F Expected Actual Start Time Stop Time " out.puts "---------------- ---------------- ---- -------- -------- ---------- ----------" @results.each do |r| out.printf "%-16.16<id>s %-16.16<description>s %-4.4<passed>s %-8.8<expected_result>s %-8.8<actual_result>s %<start_time>s %<stop_time>s\n", r.to_h end end