test

package
v0.0.0-...-9abe75c Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertHttpToWS

func ConvertHttpToWS(u string) (string, error)

func Deserialize

func Deserialize(s interface{}, d string) error

func SerializeAndDeserialize

func SerializeAndDeserialize(t *testing.T, s interface{}, d string) error

Types

type MockWebSocketServer

type MockWebSocketServer struct {
	Msgs []map[string]any
}

func (*MockWebSocketServer) TestWebSocketServer

func (ms *MockWebSocketServer) TestWebSocketServer(writeFunc connFn) *httptest.Server

Jump to

Keyboard shortcuts

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