helpers

package
v4.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertPathsEqual

func AssertPathsEqual(t *testing.T, expectedString, actualString string,
	itemsPositions []int)

Assertion wrappers for tests

func AssertQueriesEqual

func AssertQueriesEqual(t *testing.T, expectedString, actualString *url.Values,
	ignoreKeys, mixedKeys []string)

func PathsEqual

func PathsEqual(expectedString, actualString string,
	mixedPositions []int) bool

PathsEqual mixedPositions - a position of items which can contain unsorted items like multiple unsorted channels. If no such positions expected use an empty slice. Like in arrays, the first position is 0.

func QueriesEqual

func QueriesEqual(expectedString, actualString *url.Values,
	ignoreKeys []string, mixedKeys []string) bool

func UrlsEqual

func UrlsEqual(expectedString, actualString string,
	ignoreKeys, mixedKeys []string) (bool, error)

Custom URL matcher for outgoing pubnub server requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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