utils

package
v3.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStringSliceElementsEqual

func AssertStringSliceElementsEqual(first, second []string) bool

func NewPubnubMatcher

func NewPubnubMatcher(skipFields []string) cassette.Matcher

func NewPubnubSubscribeMatcher

func NewPubnubSubscribeMatcher(skipFields []string) cassette.Matcher

Types

type PubnubMatcher

type PubnubMatcher struct {
	cassette.Matcher
	// contains filtered or unexported fields
}

Matcher for non-subscribe requests

func (*PubnubMatcher) Match

func (m *PubnubMatcher) Match(interactions []*cassette.Interaction,
	r *http.Request) (*cassette.Interaction, error)

func (*PubnubMatcher) MatchUrl

func (m *PubnubMatcher) MatchUrl(expected, actual *url.URL) bool

func (*PubnubMatcher) MatchUrlStrings

func (m *PubnubMatcher) MatchUrlStrings(expected, actual string) bool

Jump to

Keyboard shortcuts

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