package
Version:
v0.0.0-...-f6df368
Opens a new window with list of versions in this module.
Published: Apr 6, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Assert(t *testing.T, condition bool, msg string, v ...interface{})
-
func ConnectClient(port string) (*websocket.Conn, error)
-
func Equals(t *testing.T, exp, act interface{})
-
func Ok(t *testing.T, err error)
-
func SendData(port string, secret string, data string) error
-
func SendVideo(port string) error
-
func TimeTrack(t *testing.T, start time.Time, name string)
Assert fails the test if the condition is false.
ConnectClient connects a websocket to local test server on the given port.
func Equals(t *testing.T, exp, act interface{})
Equals fails the test if exp is not equal to act.
Ok fails the test if an err is not nil.
SendData sends test data to localhost with given port and secret.
SendVideo send test video to localhost with given port.
TimeTrack prints the elapsed time since start in seconds, together with the given name.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.