class Capp::TestCase

Capp::TestCase contains some useful methods for testing parts of Capp.

The _DUMP constants are created from pcap files in the test directory. You can create your own capture from tcpdump:

tcpdump -r test/my.pcap [your specific capture arguments]

Constants

ARP_DUMP

An ARP packet

EAP_802_1X_DUMP

An EAP 802.1X packet

ICMP4_DUMP

An ICMPv4 packet

ICMP6_DUMP

An ICMPv6 packet

TCP4_DUMP

A TCPv4 packet

TCP6_DUMP

A TCPv6 packet

UDP4_DUMP

A UDPv4 packet

UDP6_DUMP

A UDPv6 packet

Public Instance Methods

packet(dump) click to toggle source

Returns the first packet in dump

# File lib/capp/test_case.rb, line 56
def packet dump
  Capp.offline(dump).loop.first
end