mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
add test for Set function
This commit is contained in:
parent
ec3227a16f
commit
e4352e8a98
1 changed files with 8 additions and 0 deletions
|
@ -23,3 +23,11 @@ func TestMetaMarshalJSON(t *testing.T) {
|
|||
t.Error("unable to marshal JSON from meta struct")
|
||||
}
|
||||
}
|
||||
|
||||
func TestMetaSet(t *testing.T) {
|
||||
example := buildExampleMeta()
|
||||
example.Set("picat", "<3")
|
||||
if example.m["picat"] != "<3" {
|
||||
t.Error("unable to set meta data in struct")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue