MCPcopy Index your code

hub / github.com/assafmo/joincap / functions

Functions54 in github.com/assafmo/joincap

↓ 46 callersFunctionpacketCount
(t *testing.T, pcapPath string)
main_test.go:22
↓ 31 callersFunctionjoincap
(args []string)
main.go:52
↓ 21 callersFunctiontestIsOrdered
(t *testing.T, pcapPath string)
main_test.go:107
↓ 13 callersMethodLen
()
minheap/minheap.go:23
↓ 9 callersMethodPush
Push use pointer receivers because they modify the slice's length, not just its contents.
minheap/minheap.go:29
↓ 8 callersMethodPop
Pop use pointer receivers because they modify the slice's length, not just its contents.
minheap/minheap.go:33
↓ 5 callersFunctionExpandWildcards
ExpandWildcards takes a list of file paths that may contain wildcards and returns a new list with wildcards expanded to matching file paths. If a wild
main.go:206
↓ 4 callersFunctionisTimeOrdered
(pcapPath string)
main_test.go:54
↓ 3 callersFunctionprintVersionSloganLink
()
main.go:196
↓ 2 callersFunctioncontainsWildcard
Helper function to check if a path contains wildcards
main.go:243
↓ 2 callersFunctionreadNext
(reader *pcapgo.Reader, inputFile *os.File, verbose bool, isInit bool)
main.go:313
↓ 2 callersFunctionwrite
(writer *pcapgo.Writer, packetToWrite minheap.Packet, verbose bool)
main.go:365
↓ 1 callersFunctioninitHeapWithInputFiles
initHeapWithInputFiles inits minTimeHeap with one packet from each source file. It also returns the output LinkType, which is decided by the LinkTypes
main.go:250
↓ 1 callersFunctionmain
()
main.go:45
FunctionBenchmark
(b *testing.B)
main_test.go:1107
MethodLess
(i, j int)
minheap/minheap.go:24
MethodSwap
(i, j int)
minheap/minheap.go:25
FunctionTestContainsWildcard
(t *testing.T)
wildcard_test.go:9
FunctionTestCount
TestCount packet count of merged pcap should be the sum of the packet counts of the input pcaps
main_test.go:120
FunctionTestExitOnUnknownFlag
TestExitOnUnknownFlag tests exit on unknown cli flag
main_test.go:822
FunctionTestExpandWildcards
(t *testing.T)
wildcard_test.go:30
FunctionTestGzippedPcap
TestGzippedPcap gzipped pcap should merge just fine (this kills tcpslice)
main_test.go:447
FunctionTestHelperIsTimeOrderedFalse
TestHelperIsTimeOrderedTrue test the helper function isTimeOrdered for negative value
main_test.go:97
FunctionTestHelperIsTimeOrderedTrue
TestHelperIsTimeOrderedTrue test the helper function isTimeOrdered for positive value
main_test.go:86
FunctionTestHelperPacketCount
TestHelperPacketCount test the helper function packetCount
main_test.go:47
FunctionTestIgnoreEmptyPcap
TestIgnoreEmptyPcap pcap without packets should be ignored
main_test.go:266
FunctionTestIgnoreGarbageEndingOfPcap
TestIgnoreGarbageEndingOfPcap garbage at end of pcap should be ignored (this kills tcpslice)
main_test.go:416
FunctionTestIgnoreInputFileCorruptGlobalHeader
TestIgnoreInputFileCorruptGlobalHeader merging pcap with a corrupt global header should be ignored
main_test.go:177
FunctionTestIgnoreInputFileDoesNotExists
TestIgnoreInputFileDoesntExists non existing input files should be ignored
main_test.go:356
FunctionTestIgnoreInputFileIsDirectory
TestIgnoreInputFileIsDirectory directory as input file should be ignored
main_test.go:386
FunctionTestIgnoreInputFileTruncatedFirstPacketHeader
TestIgnoreInputFileTruncatedFirstPacketHeader pcap without full first packet header (24 < size < 40 bytes) should be ignored
main_test.go:326
FunctionTestIgnoreInputFileTruncatedGlobalHeader
TestIgnoreInputFileTruncatedGlobalHeader pcap without full global header (< 24 bytes) should be ignored
main_test.go:296
FunctionTestIgnorePacketWithCorruptHeader
TestIgnorePacketWithCorruptHeader packet with corrupt header should be ignored
main_test.go:205
FunctionTestIgnorePacketsWithTimeAnHourErlierThanpreviousPacket
TestIgnorePacketsWithTimeAnHourErlierThanpreviousPacket packets with timestamp more than an hour before previous packet should be ignored
main_test.go:687
FunctionTestIgnorePacketsWithTimeEarlierThanFirst
TestIgnorePacketsWithTimeEarlierThanFirst packets with timestamp smaller than the first packet should be ignored (Is this test necessary?)
main_test.go:655
FunctionTestIgnoreTruncatedPacketEOF
TestIgnoreTruncatedPacket truncated packet (EOF) should be ignored
main_test.go:236
FunctionTestInputFilePassingOrderDoesNotMatter
TestInputFilePassingOrderDoesNotMatter input files passing order does not matter, e.g. 'joincap 1.pcap 2.pcap' == 'joincap 2.pcap 1.pcap', even if the
main_test.go:1008
FunctionTestLen
(t *testing.T)
minheap/minheap_test.go:8
FunctionTestMain
(m *testing.M)
main_test.go:15
FunctionTestMainFunc
TestMainFunc main shoud call joincap and print it's returned error (if exists)
main_test.go:834
FunctionTestMixDifferentLinkTypes
TestMixDifferentLinkTypes it's ok to mix input linktype output linktype will be "Ethernet"
main_test.go:868
FunctionTestMixLittleBigEndian
TestMixLittleBigEndian it's ok to mix input endianess
main_test.go:969
FunctionTestNanos
TestNanos timestamp precision of merged pcap
main_test.go:1066
FunctionTestNormalOutputSnaplenOnBigInputSnaplen
TestNormalOutputSnaplenOnBigInputSnaplen input snaplen should be ignored and we use our own snaplen
main_test.go:612
FunctionTestNormalOutputSnaplenOnNormalInputSnaplen
TestNormalOutputSnaplenOnNormalInputSnaplen input snaplen should be ignored and we use our own snaplen
main_test.go:572
FunctionTestNormalOutputSnaplenOnSmallInputSnaplen
TestNormalOutputSnaplenOnSmallInputSnaplen input snaplen should be ignored and we use our own snaplen
main_test.go:531
FunctionTestOrder
TestOrder all packets in merged pacap should be ordered by time
main_test.go:149
FunctionTestOrder
(t *testing.T)
minheap/minheap_test.go:41
FunctionTestOutputLinkTypeForSameInputLinkTypes
TestOutputLinkTypeForSameInputLinkTypes same input linktype shoud stay the same linktype in output file
main_test.go:914
FunctionTestPacketLimit
TestPacketLimit merged pcap should be limited to number packets passed with -c argument
main_test.go:477
FunctionTestPacketsWithTimeLessThanHourBeforePreviousPacketAreOK
TestPacketsWithTimeLessThanHourBeforePreviousPacketAreOK packets with timestamp less than an hour before previous packet are ok
main_test.go:719
FunctionTestPrintHelp
TestPrintHelp tests that the help is printed okay
main_test.go:791
FunctionTestPrintVersion
TestPrintVersion tests that the version is printed okay
main_test.go:756
FunctionTestWriteToNonExistingDirectory
TestWriteToNonExistingDirectory test writing to file in non existing directory
main_test.go:852