Sha256: 04d32dc952626f0bba63005a692112365274d4b94a77a10da3003f7f826a68a0
Contents?: true
Size: 842 Bytes
Versions: 171
Compression:
Stored size: 842 Bytes
Contents
module PactBroker module Verifications class SummaryForConsumerVersion attr_reader :verifications def initialize verifications, pacts @verifications = verifications @pacts = pacts end def success successful.count == pacts.count end def provider_summary OpenStruct.new( successful: successful, failed: failed, unknown: unknown ) end private attr_reader :pacts def successful verifications.select(&:success).collect(&:provider_name) end def failed verifications.select{|verification| !verification.success }.collect(&:provider_name) end def unknown pacts.collect(&:provider_name) - verifications.collect(&:provider_name) end end end end
Version data entries
171 entries across 171 versions & 1 rubygems