mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCMClientMock

type GCMClientMock struct {
	MessagesSent []gcm.XMPPMessage
}

GCMClientMock should be used for tests that need to send xmpp messages to GCM

func NewGCMClientMock

func NewGCMClientMock() *GCMClientMock

NewGCMClientMock creates a new instance

func (*GCMClientMock) SendXMPP

func (m *GCMClientMock) SendXMPP(msg gcm.XMPPMessage) (string, int, error)

SendXMPP records the sent message in the MessagesSent collection

Jump to

Keyboard shortcuts

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