test

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestHTTPClient = utils.NewHTTPClient("goflow-testing")

TestHTTPClient a HTTP client instance for tests

Functions

func CreateTestSession

func CreateTestSession(testServerPort int, actionToAdd flows.Action) (flows.Session, error)

CreateTestSession creates an example session for testing

func NewTestEnvironment added in v0.9.4

func NewTestEnvironment(dateFormat utils.DateFormat, tz *time.Location, now *time.Time) utils.Environment

NewTestEnvironment creates a new test environment

func NewTestHTTPServer

func NewTestHTTPServer(port int) (*httptest.Server, error)

NewTestHTTPServer sets up a mock server for webhook actions

Types

This section is empty.

Jump to

Keyboard shortcuts

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