mocks

package
v0.0.0-testwin1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionMock

type SessionMock struct{}

SessionMock is a mock of the Session interface

func (*SessionMock) AbortSMP added in v0.3.9

func (*SessionMock) AbortSMP(jid.WithResource)

AbortSMP is the implementation for Session interface

func (*SessionMock) ApprovePresenceSubscription

func (*SessionMock) ApprovePresenceSubscription(jid.WithoutResource, string) error

ApprovePresenceSubscription is the implementation for Session interface

func (*SessionMock) AutoApprove

func (*SessionMock) AutoApprove(string)

AutoApprove is the implementation for Session interface

func (*SessionMock) AwaitVersionReply

func (*SessionMock) AwaitVersionReply(<-chan data.Stanza, string)

AwaitVersionReply is the implementation for Session interface

func (*SessionMock) CancelRoomConfiguration

func (*SessionMock) CancelRoomConfiguration(jid.Bare) <-chan error

CancelRoomConfiguration is the implementation for session interface

func (*SessionMock) Close

func (*SessionMock) Close()

Close is the implementation for Session interface

func (*SessionMock) CommandManager

func (*SessionMock) CommandManager() otrclient.CommandManager

CommandManager is the implementation for Session interface

func (*SessionMock) Config

Config is the implementation for Session interface

func (*SessionMock) Conn

func (*SessionMock) Conn() xi.Conn

Conn is the implementation for Session interface

func (*SessionMock) Connect

func (*SessionMock) Connect(string, tls.Verifier) error

Connect is the implementation for Session interface

func (*SessionMock) ConversationManager

func (*SessionMock) ConversationManager() otrclient.ConversationManager

ConversationManager is the implementation for Session interface

func (*SessionMock) CreateInstantRoom

func (*SessionMock) CreateInstantRoom(jid.Bare) <-chan error

CreateInstantRoom is the implementation for session interface

func (*SessionMock) CreateReservedRoom

func (*SessionMock) CreateReservedRoom(jid.Bare) (<-chan *muc.RoomConfigForm, <-chan error)

CreateReservedRoom is the implementation for session interface

func (*SessionMock) CreateSymmetricKeyFor added in v0.3.9

func (*SessionMock) CreateSymmetricKeyFor(jid.Any) []byte

CreateSymmetricKeyFor is the implementation for Session interface

func (*SessionMock) DenyPresenceSubscription

func (*SessionMock) DenyPresenceSubscription(jid.WithoutResource, string) error

DenyPresenceSubscription is the implementation for Session interface

func (*SessionMock) DestroyRoom

func (*SessionMock) DestroyRoom(jid.Bare, string, jid.Bare, string) (<-chan bool, <-chan error)

DestroyRoom is the implementation for session interface

func (*SessionMock) DisplayName added in v0.3.6

func (*SessionMock) DisplayName() string

DisplayName is the implementation for Session interface

func (*SessionMock) EncryptAndSendTo

func (*SessionMock) EncryptAndSendTo(jid.Any, string) (int, bool, error)

EncryptAndSendTo is the implementation for Session interface

func (*SessionMock) FinishSMP added in v0.3.9

func (*SessionMock) FinishSMP(jid.WithResource, string)

FinishSMP is the implementation for Session interface

func (*SessionMock) GetAndWipeSymmetricKeyFor

func (*SessionMock) GetAndWipeSymmetricKeyFor(jid.Any) []byte

GetAndWipeSymmetricKeyFor is the implementation for Session interface

func (*SessionMock) GetChatServices

func (*SessionMock) GetChatServices(jid.Domain) (<-chan jid.Domain, <-chan error, func())

GetChatServices is the implementation for session interface

func (*SessionMock) GetConfig

func (*SessionMock) GetConfig() *config.Account

GetConfig is the implementation for Session interface

func (*SessionMock) GetInMemoryLog added in v0.3.7

func (*SessionMock) GetInMemoryLog() *bytes.Buffer

GetInMemoryLog is the implementation for Session interface

func (*SessionMock) GetRoomListing

func (s *SessionMock) GetRoomListing(jid.Bare, chan<- *muc.RoomListing)

GetRoomListing is the implementation for Session interface

func (*SessionMock) GetRooms

func (*SessionMock) GetRooms(jid.Domain, string) (<-chan *muc.RoomListing, <-chan *muc.ServiceListing, <-chan error)

GetRooms is the implementation for Session interface

func (*SessionMock) GroupDelimiter

func (*SessionMock) GroupDelimiter() string

GroupDelimiter is the implementation for Session interface

func (*SessionMock) HandleConfirmOrDeny

func (*SessionMock) HandleConfirmOrDeny(jid.WithoutResource, bool)

HandleConfirmOrDeny is the implementation for Session interface

func (*SessionMock) HasRoom

func (s *SessionMock) HasRoom(jid.Bare, chan<- *muc.RoomListing) (<-chan bool, <-chan error)

HasRoom is the implementation for Session interface

func (*SessionMock) IsConnected

func (*SessionMock) IsConnected() bool

IsConnected is the implementation for Session interface

func (*SessionMock) IsDisconnected

func (*SessionMock) IsDisconnected() bool

IsDisconnected is the implementation for Session interface

func (*SessionMock) JoinRoom

func (s *SessionMock) JoinRoom(jid.Bare, string, string) error

JoinRoom is the implementation for Session interface

func (*SessionMock) KickOccupant

func (*SessionMock) KickOccupant(roomID jid.Bare, occupantNickname string, reason string) (<-chan bool, <-chan error)

KickOccupant is the implementation for session interface

func (*SessionMock) LeaveRoom

func (*SessionMock) LeaveRoom(room jid.Bare, nickname string) (<-chan bool, <-chan error)

LeaveRoom is the implementation for session interface

func (*SessionMock) Log

func (*SessionMock) Log() coylog.Logger

Log is the implementation for session interface

func (*SessionMock) ManuallyEndEncryptedChat added in v0.3.7

func (*SessionMock) ManuallyEndEncryptedChat(jid.Any) error

ManuallyEndEncryptedChat is the implementation for Session interface

func (*SessionMock) NewRoom

func (*SessionMock) NewRoom(jid.Bare) *muc.Room

NewRoom is the implementation for session interface

func (*SessionMock) PrivateKeys

func (*SessionMock) PrivateKeys() []otr3.PrivateKey

PrivateKeys is the implementation for Session interface

func (*SessionMock) PublishEvent added in v0.3.9

func (*SessionMock) PublishEvent(interface{})

PublishEvent is the implementation for Session interface

func (*SessionMock) R

func (*SessionMock) R() *roster.List

R is the implementation for Session interface

func (*SessionMock) ReloadKeys

func (*SessionMock) ReloadKeys()

ReloadKeys is the implementation for Session interface

func (*SessionMock) RemoveContact

func (*SessionMock) RemoveContact(string)

RemoveContact is the implementation for Session interface

func (*SessionMock) RequestPresenceSubscription

func (*SessionMock) RequestPresenceSubscription(jid.WithoutResource, string) error

RequestPresenceSubscription is the implementation for Session interface

func (*SessionMock) RequestRoomDiscoInfo

func (s *SessionMock) RequestRoomDiscoInfo(jid.Bare)

RequestRoomDiscoInfo is the implementation for Session interface

func (*SessionMock) Send

func (*SessionMock) Send(jid.Any, string, bool) error

Send is the implementation for Session interface

func (*SessionMock) SendDirTo added in v0.3.9

func (*SessionMock) SendDirTo(jid.Any, string, func() bool, func(bool)) *sdata.FileTransferControl

SendDirTo is the implementation for Session interface

func (*SessionMock) SendFileTo added in v0.3.9

func (*SessionMock) SendFileTo(jid.Any, string, func() bool, func(bool)) *sdata.FileTransferControl

SendFileTo is the implementation for Session interface

func (*SessionMock) SendIQError added in v0.3.9

func (*SessionMock) SendIQError(*data.ClientIQ, interface{})

SendIQError is the implementation for Session interface

func (*SessionMock) SendIQResult added in v0.3.9

func (*SessionMock) SendIQResult(*data.ClientIQ, interface{})

SendIQResult is the implementation for Session interface

func (*SessionMock) SendMUCMessage

func (*SessionMock) SendMUCMessage(to, from, body string) error

SendMUCMessage is the implementation for Session interface

func (*SessionMock) SendPing added in v0.3.6

func (*SessionMock) SendPing()

SendPing is the implementation for Session interface

func (*SessionMock) SetCommandManager

func (*SessionMock) SetCommandManager(otrclient.CommandManager)

SetCommandManager is the implementation for Session interface

func (*SessionMock) SetConnector

func (*SessionMock) SetConnector(access.Connector)

SetConnector is the implementation for Session interface

func (*SessionMock) SetLastActionTime

func (*SessionMock) SetLastActionTime(time.Time)

SetLastActionTime is the implementation for Session interface

func (*SessionMock) SetSessionEventHandler

func (*SessionMock) SetSessionEventHandler(access.EventHandler)

SetSessionEventHandler is the implementation for Session interface

func (*SessionMock) SetWantToBeOnline

func (*SessionMock) SetWantToBeOnline(bool)

SetWantToBeOnline is the implementation for Session interface

func (*SessionMock) StartSMP added in v0.3.9

func (*SessionMock) StartSMP(jid.WithResource, string, string)

StartSMP is the implementation for Session interface

func (*SessionMock) SubmitRoomConfigurationForm

func (*SessionMock) SubmitRoomConfigurationForm(jid.Bare, *muc.RoomConfigForm) (<-chan bool, <-chan error)

SubmitRoomConfigurationForm is the implementation for session interface

func (*SessionMock) Subscribe

func (*SessionMock) Subscribe(chan<- interface{})

Subscribe is the implementation for Session interface

func (*SessionMock) Timeout

func (*SessionMock) Timeout(data.Cookie, time.Time)

Timeout is the implementation for Session interface

func (*SessionMock) UpdateOccupantAffiliation

func (*SessionMock) UpdateOccupantAffiliation(roomID jid.Bare, occupantNickname string, occupantRealJID jid.Full, affiliation mdata.Affiliation, reason string) (<-chan bool, <-chan error)

UpdateOccupantAffiliation is the implementation for session interface

func (*SessionMock) UpdateOccupantRole

func (*SessionMock) UpdateOccupantRole(jid.Bare, string, mdata.Role, string) (<-chan bool, <-chan error)

UpdateOccupantRole is the implementation for session interface

Jump to

Keyboard shortcuts

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