testing

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorContainsToken

func ErrorContainsToken(err error, token string) cmp.Comparison

ErrorContainsToken returns a comparison which checks whether the given error contains the given token. A token is contained only if there is a substring in the error message equal to the token, at the start and end of the substring there's a word boundary and the substring is not preceeded or followed by dot.

func FixIndent

func FixIndent(s string) (out string)

FixIndent removes common leading whitespace from all lines and replaces all tabs by spaces

Types

This section is empty.

Jump to

Keyboard shortcuts

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