asserts

package
v0.0.0-...-77419e6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BashMessageWithContext

func BashMessageWithContext(msg string, context string, status int, stdout string, stderr string) string

BashMessageWithContext creates a new message that hierarchically puts the message within the provided context. Provides additional info on exit status code, stdout and stderr of executed bash command.

func DoAssert

func DoAssert(value interface{}, rule interface{}) string

DoAssert asserts the value against the rule, returning an empty string if the assertion succeeds, or the error message.

func MessageWithContext

func MessageWithContext(msg string, context string) string

MessageWithContext creates a new message that hierarchically puts the message within the provided context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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