gotools/internal/jsonrpc2_v2/jsonrpc2_test.go

var callTests

type binder

type handler

type invoker

type notify

type call

type async

type collect

type cancel

type sequence

type echo

type cancelParams

func TestConnectionRaw(t *testing.T) {}

func TestConnectionHeader(t *testing.T) {}

func testConnection(t *testing.T, framer jsonrpc2.Framer) {}

func (test notify) Name() string {}

func (test notify) Invoke(t *testing.T, ctx context.Context, h *handler) {}

func (test call) Name() string {}

func (test call) Invoke(t *testing.T, ctx context.Context, h *handler) {}

func (test echo) Invoke(t *testing.T, ctx context.Context, h *handler) {}

func (test async) Name() string {}

func (test async) Invoke(t *testing.T, ctx context.Context, h *handler) {}

func (test collect) Name() string {}

func (test collect) Invoke(t *testing.T, ctx context.Context, h *handler) {}

func (test cancel) Name() string {}

func (test cancel) Invoke(t *testing.T, ctx context.Context, h *handler) {}

func (test sequence) Name() string {}

func (test sequence) Invoke(t *testing.T, ctx context.Context, h *handler) {}

// newResults makes a new empty copy of the expected type to put the results into
func newResults(expect interface{}

// verifyResults compares the results to the expected values
func verifyResults(t *testing.T, method string, results interface{}

func (b binder) Bind(ctx context.Context, conn *jsonrpc2.Connection) jsonrpc2.ConnectionOptions {}

func (h *handler) waiter(name string) chan struct{}

func (h *handler) Preempt(ctx context.Context, req *jsonrpc2.Request) (interface{}

func (h *handler) Handle(ctx context.Context, req *jsonrpc2.Request) (interface{}