mocks

package
v0.0.0-...-706d53e Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityPubClient

type ActivityPubClient struct {
	mock.Mock
}

ActivityPubClient is an autogenerated mock type for the ActivityPubClient type

func NewActivityPubClient

func NewActivityPubClient(t mockConstructorTestingTNewActivityPubClient) *ActivityPubClient

NewActivityPubClient creates a new instance of ActivityPubClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ActivityPubClient) EXPECT

func (*ActivityPubClient) PostInbox

func (_m *ActivityPubClient) PostInbox(ctx context.Context, to *models.Actor, from *models.User, act pub.Activity) error

PostInbox provides a mock function with given fields: ctx, to, from, act

type ActivityPubClient_Expecter

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

func (*ActivityPubClient_Expecter) PostInbox

func (_e *ActivityPubClient_Expecter) PostInbox(ctx interface{}, to interface{}, from interface{}, act interface{}) *ActivityPubClient_PostInbox_Call

PostInbox is a helper method to define mock.On call

  • ctx context.Context
  • to *models.Actor
  • from *models.User
  • act pub.Activity

type ActivityPubClient_PostInbox_Call

type ActivityPubClient_PostInbox_Call struct {
	*mock.Call
}

ActivityPubClient_PostInbox_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostInbox'

func (*ActivityPubClient_PostInbox_Call) Return

func (*ActivityPubClient_PostInbox_Call) Run

Jump to

Keyboard shortcuts

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