testutil

package
v3.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPact = errors.New("no pact setup")

ErrNoPact error

Functions

func PactEncodeLike

func PactEncodeLike(model []byte) string

PactEncodeLike encodes a byte slice from json.Marshal or jsonpb into a pact type-like representation

func WithPact

func WithPact(t *testing.T, from, to string, fs ...func(*testing.T, *dsl.Pact))

WithPact runs a test with a pact

Types

This section is empty.

Jump to

Keyboard shortcuts

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