mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 04:00:09 -07:00
add test for MarshalJSON function
This commit is contained in:
parent
889df698d1
commit
ec3227a16f
1 changed files with 7 additions and 0 deletions
|
@ -16,3 +16,10 @@ func TestNewMeta(t *testing.T) {
|
|||
t.Fatalf("expected '%v', got '%v'", exp, got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMetaMarshalJSON(t *testing.T) {
|
||||
_, err := buildExampleMeta().MarshalJSON()
|
||||
if err != nil {
|
||||
t.Error("unable to marshal JSON from meta struct")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue