pusher/biz/service/add_test.go
2024-05-17 18:02:10 +08:00

23 lines
377 B
Go

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
req := &config.PushConfig{}
err := s.Run(req)
if err != nil {
t.Errorf("unexpected error: %v", err)
}
// todo: edit your unit test
}