testutil

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package testutil provides global testing helper functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSchema added in v0.38.0

func LoadSchema(t *testing.T, path string) fs.ReadFileFS

LoadSchema returns the schema file as a FS.

func SetupInMemoryRegistry added in v0.38.2

func SetupInMemoryRegistry(ctx context.Context, t *testing.T, port int) string

SetupInMemoryRegistry sets up an in-memory registry on localhost and returns the address.

func TestContext

func TestContext(t *testing.T) context.Context

TestContext takes a testing.T and returns a context that is attached to the test by t.Cleanup()

Types

This section is empty.

Jump to

Keyboard shortcuts

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