This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAPI/internal/db/models/sys_event_dao_test.go
T
2020-09-26 08:06:40 +08:00

18 lines
261 B
Go

package models
import (
_ "github.com/go-sql-driver/mysql"
"testing"
)
func TestSysEvent_DecodeEvent(t *testing.T) {
event := &SysEvent{
Type: "serverChange",
}
eventObj, err := event.DecodeEvent()
if err != nil {
t.Fatal(err)
}
t.Log(eventObj)
}