mirror of
https://github.com/safing/portbase
synced 2025-09-14 09:09:50 +00:00
Work on tests and query
This commit is contained in:
parent
014f944b2a
commit
1c7f98d9ba
13 changed files with 288 additions and 88 deletions
|
@ -30,7 +30,7 @@ func TestWrapper(t *testing.T) {
|
|||
t.Error("data mismatch")
|
||||
}
|
||||
|
||||
encoded, err := wrapper.Marshal(dsd.JSON)
|
||||
encoded, err := wrapper.Marshal(wrapper, dsd.JSON)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ func TestWrapper(t *testing.T) {
|
|||
}
|
||||
|
||||
wrapper.SetMeta(&Meta{})
|
||||
raw, err := wrapper.MarshalRecord()
|
||||
raw, err := wrapper.MarshalRecord(wrapper)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue