test

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package test ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockServer

func NewMockServer(handler kt.Mock, addr net.Addr, opts ...server.Option) server.Server

NewMockServer normal server

Types

type GenericServiceErrorImpl

type GenericServiceErrorImpl struct{}

GenericServiceErrorImpl ...

func (*GenericServiceErrorImpl) GenericCall

func (g *GenericServiceErrorImpl) GenericCall(ctx context.Context, method string, request interface{}) (response interface{}, err error)

GenericCall ...

type GenericServiceImpl

type GenericServiceImpl struct{}

GenericServiceImpl ...

func (*GenericServiceImpl) GenericCall

func (g *GenericServiceImpl) GenericCall(ctx context.Context, method string, request interface{}) (response interface{}, err error)

GenericCall ...

type GenericServiceMockImpl

type GenericServiceMockImpl struct{}

GenericServiceMockImpl ...

func (*GenericServiceMockImpl) GenericCall

func (g *GenericServiceMockImpl) GenericCall(ctx context.Context, method string, request interface{}) (response interface{}, err error)

GenericCall ...

type MockImpl

type MockImpl struct{}

MockImpl is used for test

func (*MockImpl) ExceptionTest added in v0.7.0

func (m *MockImpl) ExceptionTest(ctx context.Context, req *kt.MockReq) (r string, err error)

ExceptionTest ...

func (*MockImpl) Test

func (m *MockImpl) Test(ctx context.Context, req *kt.MockReq) (r string, err error)

Test ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL