testhelpers

package
v7.0.1-0...-b8e8e6a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedent

func Dedent(x string) string

Dedent converts Go-specific indentation (tabs) into proper YAML indentation.

func IsYAMLEqual

func IsYAMLEqual(assert *assert.Assertions, expected, actual interface{}) bool

IsYAMLEqual asserts that all items in the expected properties are in the actual properties, and vice versa.

func IsYAMLEqualString

func IsYAMLEqualString(assert *assert.Assertions, expected string, actual interface{}) bool

IsYAMLEqualString asserts that all items in the expected properties are in the actual properties, and vice versa. The expected properties are specified as YAML string. Go-specific indentation in the string (tabs) is replaced with proper YAML indentation.

func IsYAMLSubset

func IsYAMLSubset(assert *assert.Assertions, expected, actual interface{}) bool

IsYAMLSubset asserts that all items in the expected properties are in the actual properties. Note, the actual properties may contain more than expected.

func IsYAMLSubsetString

func IsYAMLSubsetString(assert *assert.Assertions, expected string, actual interface{}) bool

IsYAMLSubsetString asserts that all items in the expected properties are in the actual properties. Note, the actual properties may contain more than expected. The expected properties are specified as YAML string. Go-specific indentation in the string (tabs) is replaced with proper YAML indentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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