22 lines
399 B
Go
22 lines
399 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
auth "github.com/suyiiyii/hertz101/app/auth/kitex_gen/auth"
|
|
)
|
|
|
|
func TestDeliverTokenByRPC_Run(t *testing.T) {
|
|
ctx := context.Background()
|
|
s := NewDeliverTokenByRPCService(ctx)
|
|
// init req and assert value
|
|
|
|
req := &auth.DeliverTokenReq{}
|
|
resp, err := s.Run(req)
|
|
t.Logf("err: %v", err)
|
|
t.Logf("resp: %v", resp)
|
|
|
|
// todo: edit your unit test
|
|
|
|
}
|