2024-05-17 18:02:10 +08:00
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
config "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/config"
|
|
|
|
"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
|
|
|
|
|
|
|
|
}
|