scope

package
v0.3.0-docs.0...-f96dd80 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scope

func Scope(t *testing.T, before, after TestF) (Scenario, Let)

Scope will return a scenario and let functions to semantically create e2e tests. Will require a before an after functions to be run around each scenario.

scenario, let = scope.Scope(t, func(t *testing.T){}, func(t *testing.T) {})

scenario("This will generate a scope scenario), func(){
	truthy := true
	let("This is an isolated run with global and local scopes", func(t *testing.T) {
		assert.True(t, truthy)
	})
})

Types

type Let

type Let func(string, func(t *testing.T))

Let is the interface used in Scope generator.

type Scenario

type Scenario func(string, func())

Scenario is the interface used in Scope generator.

type TestF

type TestF func(t *testing.T)

TestF is the interface used in Scope generator as before and after interface functions.

Jump to

Keyboard shortcuts

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