mocks

package
v0.0.0-...-654c9c4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNSClientMock

type SNSClientMock struct {
	mock.Mock
}

SNSClientMock is a mock for SNS

func (*SNSClientMock) Publish

func (m *SNSClientMock) Publish(message string, topicArn string, feed string) error

Publish mocks publishing on SNS

type TwitterMock

type TwitterMock struct {
	mock.Mock
}

TwitterMock is a struct for mocking the Twitter service

func (*TwitterMock) GetMentions

func (m *TwitterMock) GetMentions(params *twitter.MentionTimelineParams) ([]twitter.Tweet, error)

GetMentions mocks GetMentions on the Twitter service

func (*TwitterMock) PostTweet

func (m *TwitterMock) PostTweet(tweet string, params *twitter.StatusUpdateParams) error

PostTweet mocks posting a tweet on Twitter

Jump to

Keyboard shortcuts

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