teststrings

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(expected interface{}, actual interface{}) (e, a, diff string)

Diff returns a diff of both values as long as both are of the same type and are a struct, map, slice, array or string. Otherwise it returns an empty string.

func DiffWithLinePrefix

func DiffWithLinePrefix(linePrefix string, expected interface{}, actual interface{}) (e, a, diff string)

DiffWithLinePrefix returns a diff of both values as long as both are of the same type and are a struct, map, slice, array or string. Otherwise it returns an empty string.

func EqualStringf

func EqualStringf(t *testing.T, expected, actual, msg string, args ...interface{})

func Indent

func Indent(prefix, s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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