be_testified

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package be_testified is an experimental package that allows to use all expectto/be matchers with testify/assert and testify/require packages.

When stabilized, no `ginkgo/gomega` will be imported if you only need be_testified.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, actual any, matcher types.BeMatcher, msgAndArgs ...interface{}) bool

Assert uses a BeMatcher to assert that the actual value passes the matcher. It returns true if the match succeeds; otherwise, it fails the test using testify's assert.

func Require

func Require(t *testing.T, actual any, matcher types.BeMatcher, msgAndArgs ...interface{})

Require asserts that the actual value passes the matcher. It fails the test immediately using testify's require package if the match fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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