doubles

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterFinderStub

type AdapterFinderStub struct {
	AdapterByServiceTypeValue globalEntities.LocalGitAuthProvider
	AdapterByURLValue         globalEntities.LocalGitAuthProvider
}

AdapterFinderStub implements git.AdapterFinder for testing.

func (*AdapterFinderStub) GetAdapterByServiceType

func (*AdapterFinderStub) GetAdapterByURL

type AuthStub

type AuthStub struct{}

AuthStub is a dummy transport.AuthMethod for testing.

func (*AuthStub) Name

func (s *AuthStub) Name() string

func (*AuthStub) String

func (s *AuthStub) String() string

type CommitSignerStub

type CommitSignerStub struct {
	SignatureValue string
	SignError      error
}

CommitSignerStub implements CommitSigner for testing.

func (*CommitSignerStub) Sign

func (s *CommitSignerStub) Sign(_ context.Context, _ []byte) (string, error)

type ForgeProviderStub

type ForgeProviderStub struct {
	NameValue        string
	MatchURLValue    string
	TokenValue       string
	ServiceTypeValue globalEntities.ServiceType
	AuthMethodsValue []transport.AuthMethod
}

ForgeProviderStub implements ForgeProvider + LocalGitAuthProvider for testing.

func (*ForgeProviderStub) AuthToken

func (s *ForgeProviderStub) AuthToken() string

func (*ForgeProviderStub) CloneURL

func (*ForgeProviderStub) ConfigureTransport

func (s *ForgeProviderStub) ConfigureTransport()

func (*ForgeProviderStub) DiscoverRepositories

func (s *ForgeProviderStub) DiscoverRepositories(
	_ context.Context, _ string,
) ([]globalEntities.Repository, error)

func (*ForgeProviderStub) GetAuthMethods

func (s *ForgeProviderStub) GetAuthMethods(_ string) []transport.AuthMethod

func (*ForgeProviderStub) GetServiceType

func (s *ForgeProviderStub) GetServiceType() globalEntities.ServiceType

func (*ForgeProviderStub) MatchesURL

func (s *ForgeProviderStub) MatchesURL(rawURL string) bool

func (*ForgeProviderStub) Name

func (s *ForgeProviderStub) Name() string

func (*ForgeProviderStub) PrepareCloneURL

func (s *ForgeProviderStub) PrepareCloneURL(url string) string

func (*ForgeProviderStub) PullRequestExists

func (s *ForgeProviderStub) PullRequestExists(
	_ context.Context, _ globalEntities.Repository, _ string,
) (bool, error)

type RepositoryDiscovererStub

type RepositoryDiscovererStub struct {
	NameValue string
}

RepositoryDiscovererStub implements RepositoryDiscoverer for testing.

func (*RepositoryDiscovererStub) DiscoverRepositories

func (s *RepositoryDiscovererStub) DiscoverRepositories(
	_ context.Context, _ string,
) ([]globalEntities.Repository, error)

func (*RepositoryDiscovererStub) Name

func (s *RepositoryDiscovererStub) Name() string

Jump to

Keyboard shortcuts

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