diff

package
v0.0.0-...-c9c0277 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvolutedFormatReflectType

func ConvolutedFormatReflectType(s reflect.Type) string

FormatStructString takes a string containing a Go struct definition and formats it for better readability

func ConvolutedFormatReflectValue

func ConvolutedFormatReflectValue(s reflect.Value) any

func RequireKnownValueEqual

func RequireKnownValueEqual[T any](t *testing.T, want, got T)

func RequireUnknownTypeEqual

func RequireUnknownTypeEqual(t *testing.T, want, got reflect.Type)

func RequireUnknownValueEqualAsJSON

func RequireUnknownValueEqualAsJSON(t *testing.T, want, got reflect.Value)

func SingleLineStringDiff

func SingleLineStringDiff(want string, got string) string

func Strip

func Strip(str string) string

func TypedDiff

func TypedDiff[T any](want T, got T) string

func TypedDiffExportedOnly

func TypedDiffExportedOnly[T any](want T, got T) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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