Documentation ¶
Overview ¶
Package mock_stride is a generated GoMock package.
Index ¶
- func RunStories(t *testing.T, mock *MockClient, handler http.Handler, story StrideStory)
- type Inbound
- type MockClient
- func (m *MockClient) ConvertDocToText(doc *stride.Document) (string, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetConversation(cloudID, conversationID string) (*stride.ConversationCommon, error)
- func (m *MockClient) GetConversationByName(cloudID, conversationID string) (*stride.ConversationCommon, error)
- func (m *MockClient) GetUser(cloudID, userID string) (*stride.User, error)
- func (m *MockClient) SendMessage(cloudID, conversationID string, payload *stride.Payload) error
- func (m *MockClient) SendUserMessage(cloudID, userID string, payload *stride.Payload) error
- func (m *MockClient) ValidateToken(tokenString string) (jwt.MapClaims, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) ConvertDocToText(doc interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetConversation(cloudID, conversationID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetConversationByName(cloudID, conversationID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetUser(cloudID, userID interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SendMessage(cloudID, conversationID, payload interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) SendUserMessage(cloudID, userID, payload interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ValidateToken(tokenString interface{}) *gomock.Call
- type Outbound
- type StrideStory
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 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 }