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: 0

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