class Sloe::Expectations::Ixia::HaveNoPacketLoss
Public Instance Methods
failure_message_for_should()
click to toggle source
# File lib/sloe/expectations.rb, line 49 def failure_message_for_should @lossy_flows end
match(actual)
click to toggle source
# File lib/sloe/expectations.rb, line 40 def match(actual) @lossy_flows = actual.select do |row| if row['Loss %'].to_f > 0.0 "#{row['Source/Dest Endpoint Pair']}:\t\t#{row['Loss %']}\n" end end @lossy_flows.size == 0 end