tshort

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TShort

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

func Init

func Init(init func(t *testing.T), sep string, rootStage ...string) *TShort

func (*TShort) AddStage

func (ts *TShort) AddStage(name string, f func(), next ...string) *TShort

Добавляет новый стейдж

  • name - имя нового стейджа, если начинается с '@', то это имя пропускается при наименовании кейса
  • f - логика стейджа
  • next - набор последующих стейджей

func (*TShort) Run

func (ts *TShort) Run(t *testing.T, f func(t *testing.T))

Запускает тесты на каждый кейс

вызывает t.Run()

Jump to

Keyboard shortcuts

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