mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
add test for NewMeta function
This commit is contained in:
parent
d18491aff8
commit
889df698d1
1 changed files with 8 additions and 0 deletions
|
@ -8,3 +8,11 @@ import (
|
|||
func buildExampleMeta() *Meta {
|
||||
return NewMeta()
|
||||
}
|
||||
|
||||
func TestNewMeta(t *testing.T) {
|
||||
exp := len(Meta{}.m)
|
||||
got := len(NewMeta().m)
|
||||
if got != exp {
|
||||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue