pusher/biz/service/add_test.go

23 lines
437 B
Go
Raw Normal View History

2024-05-17 18:02:10 +08:00
package service
import (
"context"
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
2024-05-20 17:57:25 +08:00
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
2024-05-17 18:02:10 +08:00
"testing"
)
func TestAdd_Run(t *testing.T) {
ctx := context.Background()
s := NewAddService(ctx)
// init req and assert value
2024-05-20 17:57:25 +08:00
req := &config.PusherConfig{}
resp, err := s.Run(req)
t.Logf("err: %v", err)
t.Logf("resp: %v", resp)
2024-05-17 18:02:10 +08:00
// todo: edit your unit test
}