twitter_test

package
v0.0.0-...-bc11ca3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTwitter

type MockTwitter struct {
	T                      *testing.T
	GetWebhooksMock        func() ([]twitter.Webhook, error)
	CreateWebhookMock      func(string) (twitter.Webhook, error)
	DeleteWebhookMock      func(string) error
	GetSubscriptionsMock   func() ([]twitter.Subscription, error)
	DeleteSubscriptionMock func(string) error
	AddSubscriptionMock    func() error
	GetTweetMock           func(tweetID string) (*twitter.Tweet, error)
	GetTweetRawMock        func(tweetID string) (*http.Response, error)
	TweetReplyMock         func(tweet *twitter.Tweet, message string) (*twitter.Tweet, error)
	UserTimelineMock       func(screenName string, tweetID string) ([]*twitter.Tweet, error)
}

func (*MockTwitter) AddSubscription

func (*MockTwitter) CreateWebhook

func (*MockTwitter) DeleteSubscription

func (m *MockTwitter) DeleteSubscription(ctx context.Context, id string) structured_error.StructuredError

func (*MockTwitter) DeleteWebhook

func (*MockTwitter) GetSubscriptions

func (*MockTwitter) GetTweet

func (*MockTwitter) GetTweetRaw

func (*MockTwitter) GetWebhooks

func (*MockTwitter) TweetReply

func (m *MockTwitter) TweetReply(ctx context.Context, tweet *twitter.Tweet, message string) (*twitter.Tweet, structured_error.StructuredError)

func (*MockTwitter) UserTimeline

func (m *MockTwitter) UserTimeline(ctx context.Context, screenName string, tweetID string) ([]*twitter.Tweet, structured_error.StructuredError)

Jump to

Keyboard shortcuts

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