1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-05 02:00:23 +08:00
Files
go-onebot-agent/types_test.go
2026-04-25 17:39:14 +08:00

19 lines
299 B
Go

package goba
import "testing"
func TestMarshalAPIResponse(t *testing.T) {
rsp := &APIResponse{
Status: "error",
Data: []byte(`null`),
Message: "12345",
}
t.Log(rsp.String())
rsp = &APIResponse{
Status: "error",
Data: []byte(``),
Message: "12345",
}
t.Log(rsp.String())
}