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 }