mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -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 {
|
func buildExampleMeta() *Meta {
|
||||||
return NewMeta()
|
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