runn

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 25 Imported by: 7

README

runn

runn is a tool for running operations following a scenario.

Key features of runn are:

  • As a tool for scenario testing.
  • As a test helper for the Go language.
  • As a tool for automation.

Usage

WIP

Alternatives

Documentation

Index

Constants

View Source
const (
	MediaTypeApplicationJSON = "application/json"
)

Variables

View Source
var (
	T       = AsTestHelper
	Runbook = Book
)

Functions

func Load added in v0.2.0

func Load(path string, opts ...Option) (operators, error)

func LoadBook

func LoadBook(in io.Reader) (*book, error)

func LoadBookFile

func LoadBookFile(path string) (*book, error)

func New

func New(opts ...Option) (*operator, error)

Types

type Option

type Option func(*book) error

func AsTestHelper

func AsTestHelper(t *testing.T) Option

func Book

func Book(path string) Option

func DBRunner

func DBRunner(name string, client *sql.DB) Option

func Desc

func Desc(desc string) Option

func HTTPRunner

func HTTPRunner(name, endpoint string, client *http.Client) Option

func Runner

func Runner(name, dsn string) Option

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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