22 lines
376 B
Go
22 lines
376 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
|
|
"testing"
|
|
)
|
|
|
|
func TestList_Run(t *testing.T) {
|
|
ctx := context.Background()
|
|
s := NewListService(ctx)
|
|
// init req and assert value
|
|
|
|
req := &push.ListPusherRequest{}
|
|
resp, err := s.Run(req)
|
|
t.Logf("err: %v", err)
|
|
t.Logf("resp: %v", resp)
|
|
|
|
// todo: edit your unit test
|
|
|
|
}
|