Represents a single test case.
# File lib/ssl_test/ssl_test_case.rb, line 15 def self.factory(appctx, test_data, tests_to_create) if tests_to_create == [] or tests_to_create == nil final_test_data = test_data else final_test_data = tests_to_create.map { |name| test_data.select { |test| test['alias'] == name }[0] } end final_test_data.map { |data| SSLTestCase.new(appctx, data) } end
# File lib/ssl_test/ssl_test_case.rb, line 24 def initialize(appctx, testdesc) @appctx = appctx @raw = testdesc.dup @id = @raw['alias'] @description = @raw['name'] @certchainalias = @raw['certchain'] @expected_result = @raw['expected_result'] end