testutils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TypeContextNamed    *types.Named
	TypeObjectIDNamed   *types.Named
	TypeCollectionNamed *types.Named

	Pkg                     *types.Package
	TypeUserNamed           *types.Named
	TypeUserStruct          *types.Struct
	TypeGenderNamed         *types.Named
	TypeNameStruct          *types.Struct
	TypeConsentHistoryNamed *types.Named
)

Functions

func ExpectMultiLineString

func ExpectMultiLineString(expected, actual string) error

ExpectMultiLineString compares two multi-line strings and report the difference.

func FindStructFieldByName added in v0.4.0

func FindStructFieldByName(s *types.Struct, name string) code.StructField

func NewLineMismatchedError added in v0.3.0

func NewLineMismatchedError(lineNumber int, expected, received string) error

NewLineMismatchedError is a constructor for lineMismatchedError.

func NewMissingLinesError added in v0.3.0

func NewMissingLinesError(missingLines []string) error

NewMissingLinesError is a constructor for missingLinesError.

func NewUnexpectedLinesError added in v0.3.0

func NewUnexpectedLinesError(unexpectedLines []string) error

NewUnexpectedLinesError is a constructor for unexpectedLinesError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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