testutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package testutil defines internal support code for writing tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseRequest

func MustParseRequest(t *testing.T, s string) *jrpc2.Request

MustParseRequest calls ParseRequest and fails t if it reports an error.

func ParseRequest

func ParseRequest(s string) (_ *jrpc2.Request, err error)

ParseRequest parses a single JSON request object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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