websockettest

package
v0.0.0-...-0db00f2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertJSONError

func AssertJSONError(c *gc.C, ws *websocket.Conn, expected string)

AssertJSONError checks the JSON encoded error returned by the log and logsink APIs matches the expected value.

func AssertJSONInitialErrorNil

func AssertJSONInitialErrorNil(c *gc.C, ws *websocket.Conn)

AssertJSONInitialErrorNil checks the JSON encoded error returned by the log and logsink APIs are nil.

func AssertWebsocketClosed

func AssertWebsocketClosed(c *gc.C, ws *websocket.Conn)

AssertWebsocketClosed checks that the given websocket connection is closed.

func ReadJSONErrorLine

func ReadJSONErrorLine(c *gc.C, ws *websocket.Conn) params.ErrorResult

ReadJSONErrorLine returns the error line returned by the log and logsink APIS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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