Add a pcap-split tool
This commit is contained in:
@@ -102,7 +102,8 @@ func TestPcapFilename(t *testing.T) {
|
||||
" ": "packet.pcap",
|
||||
"dns query": "dns_query.pcap",
|
||||
"x.pcap": "x.pcap",
|
||||
"../etc/passwd": ".._etc_passwd.pcap",
|
||||
"../etc/passwd": "passwd.pcap",
|
||||
`C:\\x\\y.pcap`: "y.pcap",
|
||||
`a"b`: "a_b.pcap",
|
||||
} {
|
||||
if got := pcapFilename(in); got != want {
|
||||
@@ -112,7 +113,7 @@ func TestPcapFilename(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestHandlers(t *testing.T) {
|
||||
srv, err := New()
|
||||
srv, err := New(Config{MaxUploadBytes: 1 << 20})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user