mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFailedTelegramClient

type MockFailedTelegramClient struct{}

func NewMockFailedClient

func NewMockFailedClient() *MockFailedTelegramClient

func (MockFailedTelegramClient) SendTextMessageToChat

func (c MockFailedTelegramClient) SendTextMessageToChat(_ int, _ string) (string, error)

type MockHttpClient

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

func NewMockHttpClient

func NewMockHttpClient(statusCode int, body string, err error) *MockHttpClient

func (MockHttpClient) PostForm

func (c MockHttpClient) PostForm(_ string, _ url.Values) (*http.Response, error)

type MockHttpClientFailedCloser

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

func NewMockHttpClientFailedCloser

func NewMockHttpClientFailedCloser(statusCode int, body string, err error) *MockHttpClientFailedCloser

func (MockHttpClientFailedCloser) PostForm

type MockOkTelegramClient

type MockOkTelegramClient struct{}

func NewMockOkClient

func NewMockOkClient() *MockOkTelegramClient

func (MockOkTelegramClient) SendTextMessageToChat

func (c MockOkTelegramClient) SendTextMessageToChat(_ int, _ string) (string, error)

type MockReadCloser

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

func (MockReadCloser) Close

func (r MockReadCloser) Close() error

func (MockReadCloser) Read

func (r MockReadCloser) Read(_ []byte) (n int, err error)

Jump to

Keyboard shortcuts

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