mock_stride

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_stride is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStories

func RunStories(t *testing.T, mock *MockClient, handler http.Handler, story StrideStory)

Types

type Inbound

type Inbound struct {
	Url            string
	CloudID        string
	ConversationID string
	Sender         string
	Msg            *stride.Payload
}

func NewInbound

func NewInbound(sender, url string, payload *stride.Payload) Inbound

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) ConvertDocToText

func (m *MockClient) ConvertDocToText(doc *stride.Document) (string, error)

ConvertDocToText mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClient) GetConversation

func (m *MockClient) GetConversation(cloudID, conversationID string) (*stride.ConversationCommon, error)

GetConversation mocks base method

func (*MockClient) GetConversationByName

func (m *MockClient) GetConversationByName(cloudID, conversationID string) (*stride.ConversationCommon, error)

GetConversation mocks base method

func (*MockClient) GetUser

func (m *MockClient) GetUser(cloudID, userID string) (*stride.User, error)

GetUser mocks base method

func (*MockClient) SendMessage

func (m *MockClient) SendMessage(cloudID, conversationID string, payload *stride.Payload) error

SendMessage mocks base method

func (*MockClient) SendUserMessage

func (m *MockClient) SendUserMessage(cloudID, userID string, payload *stride.Payload) error

SendUserMessage mocks base method

func (*MockClient) ValidateToken

func (m *MockClient) ValidateToken(tokenString string) (jwt.MapClaims, error)

ConvertDocToText mocks base method

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) ConvertDocToText

func (mr *MockClientMockRecorder) ConvertDocToText(doc interface{}) *gomock.Call

ConvertDocToText indicates an expected call of ConvertDocToText

func (*MockClientMockRecorder) GetConversation

func (mr *MockClientMockRecorder) GetConversation(cloudID, conversationID interface{}) *gomock.Call

GetConversation indicates an expected call of GetConversation

func (*MockClientMockRecorder) GetConversationByName

func (mr *MockClientMockRecorder) GetConversationByName(cloudID, conversationID interface{}) *gomock.Call

GetConversation indicates an expected call of GetConversation

func (*MockClientMockRecorder) GetUser

func (mr *MockClientMockRecorder) GetUser(cloudID, userID interface{}) *gomock.Call

GetUser indicates an expected call of GetUser

func (*MockClientMockRecorder) SendMessage

func (mr *MockClientMockRecorder) SendMessage(cloudID, conversationID, payload interface{}) *gomock.Call

SendMessage indicates an expected call of SendMessage

func (*MockClientMockRecorder) SendUserMessage

func (mr *MockClientMockRecorder) SendUserMessage(cloudID, userID, payload interface{}) *gomock.Call

SendUserMessage indicates an expected call of SendUserMessage

func (*MockClientMockRecorder) ValidateToken

func (mr *MockClientMockRecorder) ValidateToken(tokenString interface{}) *gomock.Call

ConvertDocToText indicates an expected call of ConvertDocToText

type Outbound

type Outbound struct {
	CloudID        string
	ConversationID string
	Msg            *stride.Payload
	// contains filtered or unexported fields
}

func NewOutbound

func NewOutbound(payload *stride.Payload) Outbound

func (Outbound) ToUser

func (x Outbound) ToUser(user string) Outbound

type StrideStory

type StrideStory struct {
	MessagesIN  []Inbound
	MessagesOUT []Outbound // payload output
}

Jump to

Keyboard shortcuts

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