testutil

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJSONSubset

func AssertJSONSubset(tb testing.TB, expected, actual interface{})

AssertJSONSubset verifies that every expected field/value exists in actual. Extra fields in actual are allowed so compatibility tests can survive additive schema changes.

func MustLoadFixtureMap

func MustLoadFixtureMap(tb testing.TB, baseFile string, relativePath ...string) map[string]interface{}

MustLoadFixtureMap loads a JSON fixture relative to baseFile and unmarshals it into a map.

func NormalizeGenerateSuccessPayload

func NormalizeGenerateSuccessPayload(payload map[string]interface{})

NormalizeGenerateSuccessPayload replaces dynamic absolute paths so fixtures can stay stable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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