test

package
v0.0.0-...-f6df368 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func ConnectClient

func ConnectClient(port string) (*websocket.Conn, error)

ConnectClient connects a websocket to local test server on the given port.

func Equals

func Equals(t *testing.T, exp, act interface{})

Equals fails the test if exp is not equal to act.

func Ok

func Ok(t *testing.T, err error)

Ok fails the test if an err is not nil.

func SendData

func SendData(port string, secret string, data string) error

SendData sends test data to localhost with given port and secret.

func SendVideo

func SendVideo(port string) error

SendVideo send test video to localhost with given port.

func TimeTrack

func TimeTrack(t *testing.T, start time.Time, name string)

TimeTrack prints the elapsed time since start in seconds, together with the given name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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