tutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(t *testing.T, configOpts []string) *client.Client

A wrapper around NewClient to simplify test usage

func EqualJSON

func EqualJSON(t *testing.T, s1 string, s2 string) bool

Determine if two strings are equal JSON

func ErrorContains

func ErrorContains(out error, want string) bool

Check if an error message contains a string

func FileToYamlDocs

func FileToYamlDocs(t *testing.T, path string) []string

A wrapper around docparse.FromFile to simplify test usage

func Fixture

func Fixture(t *testing.T, path string) []byte

Return the byte array of a test fixture

func RandomBytes

func RandomBytes(n int) ([]byte, error)

Produces random bytes of length n

Types

This section is empty.

Jump to

Keyboard shortcuts

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