testc

package module
v0.0.0-...-2a44206 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

TestC

TestC - A common testing library for simple BDD and assertions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestC

type TestC struct {
	Assert  *assert.Assertions
	Require *require.Assertions
	// contains filtered or unexported fields
}

TestC extends the standard testing functions with assertions and BDD logging

func New

func New(t *testing.T) *TestC

New .

func (*TestC) Given

func (t *TestC) Given(args ...interface{})

Given prepends the BDD GIVEN word

func (*TestC) Givenf

func (t *TestC) Givenf(format string, args ...interface{})

Givenf prepends the BDD GIVEN word

func (*TestC) Then

func (t *TestC) Then(args ...interface{})

Then prepends the BDD THEN word

func (*TestC) Thenf

func (t *TestC) Thenf(format string, args ...interface{})

Thenf prepends the BDD THEN word

func (*TestC) WaitTimeout

func (t *TestC) WaitTimeout(wait *sync.WaitGroup, timeout time.Duration)

WaitTimeout waits for the sync group or times out and fails

func (*TestC) When

func (t *TestC) When(args ...interface{})

When prepends the BDD WHEN word

func (*TestC) Whenf

func (t *TestC) Whenf(format string, args ...interface{})

Whenf prepends the BDD WHEN word

Jump to

Keyboard shortcuts

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