testutils

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Examples00InvalidPath = "../examples/404/"
	Examples00TestPath    = "../examples/00_test/"
	Examples01MoodbotPath = "../examples/01_moodbot/"
	Examples02MiscPath    = "../examples/02_misc/"
	Examples03PokemonPath = "../examples/03_pokemon/"
	Examples04TriviaPath  = "../examples/04_trivia/"
	Examples05SimplePath  = "../examples/05_simple/"
	TestWordVectors       = "../internal/testutils/testvec"
)

Functions

func GetFreePort

func GetFreePort(t *testing.T) string

GetFreePort returns an available port to use

func GetTestWordVectors added in v0.8.1

func GetTestWordVectors(skipOOV bool) (*wordvectors.VectorMap, error)

func RemoveFiles added in v0.8.2

func RemoveFiles(extension string)

func RunGoExtension

func RunGoExtension(t *testing.T, path, port string)

RunGoExtension for running extensions with unit tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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