di

package
v0.0.0-...-5b00bd7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildService

func BuildService(private identity.Private, config service.Config) (service.Service, func(), error)

Types

type BadgerTestAdapters

type BadgerTestAdapters struct {
	TransactionProvider *TestTransactionProvider
}

func BuildBadgerTestAdapters

func BuildBadgerTestAdapters(tb testing.TB) (BadgerTestAdapters, error)

type TestAdapters

type TestAdapters struct {
	InviteRepository *pubbadgeradapters.InviteRepository
}

type TestApplication

type TestApplication struct {
	Commands app.Commands

	SocialGraphRepository *mocks.SocialGraphRepositoryMock
	InviteRepository      *mocks.InviteRespositoryMock
	FeedRepository        *mocks.FeedRepositoryMock
	Marshaler             *mocks.MarshalerMock
	FeedFormat            *mocks.FeedFormatMock
	LocalIdentity         identity.Private
	CurrentTimeProvider   *mocks.CurrentTimeProviderMock
}

func BuildTestApplication

func BuildTestApplication(tb testing.TB) (TestApplication, error)

Jump to

Keyboard shortcuts

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