mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
add test for Get function
This commit is contained in:
parent
383aa509c2
commit
e751ecf6a0
1 changed files with 11 additions and 0 deletions
|
@ -28,3 +28,14 @@ func TestAliasesSave(t *testing.T) {
|
|||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAliasesGet(t *testing.T) {
|
||||
exampleAliases := buildExampleAlaises()
|
||||
|
||||
exp := ""
|
||||
got := exampleAliases.Get("pi:ca:tw:as:he:re")
|
||||
|
||||
if got != exp {
|
||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue