require

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package require starts a predicate chain that will fail the current test if the assertions fails.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func That

func That(t predicate.T, v interface{}, ctx ...Context) *builder.Builder

That captrues the test context and a value for the purpose of building and evaluating a test predicate through call chaining. The current test will fail immediately if the predicate fails.

Types

type Context added in v0.6.4

type Context = predicate.ContextValue

Context captures an additional context value to be displayed upon failure.

Jump to

Keyboard shortcuts

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