Documentation ¶
Overview ¶
Package xmpptest provides utilities for XMPP testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSession ¶
func NewSession(state xmpp.SessionState, rw io.ReadWriter) *xmpp.Session
NewSession returns a new XMPP session with the state bits set to state|xmpp.Ready, the origin JID set to "test@example.net" and the location JID set to "example.net".
NewSession panics on error for ease of use in testing, where a panic is acceptable.
func NopNegotiator ¶ added in v0.7.1
func NopNegotiator(state xmpp.SessionState) xmpp.Negotiator
NopNegotiator marks the state as ready (by returning state|xmpp.Ready) and does not actually transmit any data over the wire or perform any other session negotiation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.