report

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package report contains shared Allure step reporting for testify proxies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Helper

func Helper(t testingT)

Helper marks the current wrapper as a test helper when the target supports it.

Types

type Argument

type Argument struct {
	Name  string
	Value interface{}
}

Argument is one testify assertion input captured before the upstream call.

func Arg

func Arg(name string, value interface{}) Argument

Arg records one named testify assertion argument for failure diagnostics.

type AssertT

type AssertT interface {
	Errorf(format string, args ...interface{})
}

AssertT is the TestingT shape used by assert-style wrappers.

type Call

type Call struct {
	// contains filtered or unexported fields
}

Call records one proxied testify assertion as an Allure step.

func Begin

func Begin(t testingT, name string) *Call

Begin starts an Allure step for a proxied testify assertion.

func (*Call) AssertT

func (c *Call) AssertT() AssertT

AssertT returns the wrapped TestingT passed to upstream assert functions.

func (*Call) Capture

func (c *Call) Capture(args ...Argument)

Capture stores assertion inputs so failed steps can expose expected and actual status details without parsing testify's formatted failure message.

func (*Call) FinishAssert

func (c *Call) FinishAssert(passed *bool)

FinishAssert completes an assert-style step and preserves panics.

func (*Call) FinishRequire

func (c *Call) FinishRequire()

FinishRequire completes a require-style step and preserves panics.

func (*Call) RequireT

func (c *Call) RequireT() RequireT

RequireT returns the wrapped TestingT passed to upstream require functions.

type RequireT

type RequireT interface {
	Errorf(format string, args ...interface{})
	FailNow()
}

RequireT is the TestingT shape used by require-style wrappers.

Jump to

Keyboard shortcuts

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