flow

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package flow is to help autoload env runners and run test cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(runners ...envs.Runner) *Client

New with runners. They will be executed Up with forwarding order and Down with reverse order.

client := New(runner1, runner2, runner3)

func (*Client) Case

func (c *Client) Case(name string, fn func(t *testing.T)) *Client

Case of test.

func (*Client) Run

func (c *Client) Run(t *testing.T)

Run all testcases.

func (*Client) Setup

func (c *Client) Setup(fn func(t *testing.T, name string)) *Client

Setup for every case. You can determine which case is running through name.

func (*Client) Teardown

func (c *Client) Teardown(fn func(t *testing.T, name string)) *Client

Teardown for every case. You can determine which case is running through name.

Jump to

Keyboard shortcuts

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