mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
Update broken tests
This commit is contained in:
parent
d22befab45
commit
6406885928
8 changed files with 90 additions and 64 deletions
|
@ -91,7 +91,7 @@ func TestModuleHandler_Help(t *testing.T) {
|
|||
Name: tt.fields.Name,
|
||||
Description: tt.fields.Description,
|
||||
Parser: tt.fields.Parser,
|
||||
Exec: tt.fields.Exec,
|
||||
exec: tt.fields.Exec,
|
||||
}
|
||||
if got := h.Help(tt.args.padding); got != tt.want {
|
||||
t.Errorf("ModuleHandler.Help() = \n%v, want\n%v", got, tt.want)
|
||||
|
@ -152,7 +152,7 @@ func TestModuleHandler_Parse(t *testing.T) {
|
|||
Name: tt.fields.Name,
|
||||
Description: tt.fields.Description,
|
||||
Parser: tt.fields.Parser,
|
||||
Exec: tt.fields.Exec,
|
||||
exec: tt.fields.Exec,
|
||||
}
|
||||
got, got1 := h.Parse(tt.args.line)
|
||||
if got != tt.want {
|
||||
|
@ -197,7 +197,7 @@ func TestModuleHandler_MarshalJSON(t *testing.T) {
|
|||
Name: tt.fields.Name,
|
||||
Description: tt.fields.Description,
|
||||
Parser: tt.fields.Parser,
|
||||
Exec: tt.fields.Exec,
|
||||
exec: tt.fields.Exec,
|
||||
}
|
||||
got, err := h.MarshalJSON()
|
||||
if (err != nil) != tt.wantErr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue