mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
Update broken tests
This commit is contained in:
parent
d22befab45
commit
6406885928
8 changed files with 90 additions and 64 deletions
|
@ -3,6 +3,8 @@ package network
|
|||
import (
|
||||
"net"
|
||||
"testing"
|
||||
|
||||
"github.com/evilsocket/islazy/data"
|
||||
)
|
||||
|
||||
func TestIsZeroMac(t *testing.T) {
|
||||
|
@ -38,7 +40,7 @@ func TestParseTargets(t *testing.T) {
|
|||
cases := []struct {
|
||||
Name string
|
||||
InputTargets string
|
||||
InputAliases *Aliases
|
||||
InputAliases *data.UnsortedKV
|
||||
ExpectedIPCount int
|
||||
ExpectedMACCount int
|
||||
ExpectedError bool
|
||||
|
@ -48,7 +50,7 @@ func TestParseTargets(t *testing.T) {
|
|||
{
|
||||
"empty target string causes empty return",
|
||||
"",
|
||||
&Aliases{},
|
||||
&data.UnsortedKV{},
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
|
@ -56,7 +58,7 @@ func TestParseTargets(t *testing.T) {
|
|||
{
|
||||
"MACs are parsed",
|
||||
"192.168.1.2, 192.168.1.3, 5c:00:0b:90:a9:f0, 6c:00:0b:90:a9:f0",
|
||||
&Aliases{},
|
||||
&data.UnsortedKV{},
|
||||
2,
|
||||
2,
|
||||
false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue