22 lines
375 B
Go
22 lines
375 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.PusherConfig{}
|
|
resp, err := s.Run(req)
|
|
t.Logf("err: %v", err)
|
|
t.Logf("resp: %v", resp)
|
|
|
|
// todo: edit your unit test
|
|
|
|
}
|