Help us shape the future of Go! Take the 2026 Go Developer Survey

studio

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCardScreener added in v0.8.0

type MockCardScreener struct {
	mock.Mock
}

MockCardScreener is an autogenerated mock type for the CardScreener type

func NewMockCardScreener added in v0.8.0

func NewMockCardScreener(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCardScreener

NewMockCardScreener creates a new instance of MockCardScreener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCardScreener) EXPECT added in v0.8.0

func (*MockCardScreener) Screen added in v0.8.0

func (_mock *MockCardScreener) Screen(ctx context.Context, cfg config.Reader, fs afero.Fs, dir string) ([]takescmd.SelectedScreen, error)

Screen provides a mock function for the type MockCardScreener

type MockCardScreener_Expecter added in v0.8.0

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

func (*MockCardScreener_Expecter) Screen added in v0.8.0

func (_e *MockCardScreener_Expecter) Screen(ctx interface{}, cfg interface{}, fs interface{}, dir interface{}) *MockCardScreener_Screen_Call

Screen is a helper method to define mock.On call

  • ctx context.Context
  • cfg config.Reader
  • fs afero.Fs
  • dir string

type MockCardScreener_Screen_Call added in v0.8.0

type MockCardScreener_Screen_Call struct {
	*mock.Call
}

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

func (*MockCardScreener_Screen_Call) Return added in v0.8.0

func (*MockCardScreener_Screen_Call) Run added in v0.8.0

func (*MockCardScreener_Screen_Call) RunAndReturn added in v0.8.0

type MockCertSource added in v0.9.0

type MockCertSource struct {
	mock.Mock
}

MockCertSource is an autogenerated mock type for the CertSource type

func NewMockCertSource added in v0.9.0

func NewMockCertSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCertSource

NewMockCertSource creates a new instance of MockCertSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCertSource) EXPECT added in v0.9.0

func (*MockCertSource) ServerCert added in v0.9.0

func (_mock *MockCertSource) ServerCert(ctx context.Context, host string, ips []net.IP) (*tls.Certificate, error)

ServerCert provides a mock function for the type MockCertSource

type MockCertSource_Expecter added in v0.9.0

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

func (*MockCertSource_Expecter) ServerCert added in v0.9.0

func (_e *MockCertSource_Expecter) ServerCert(ctx interface{}, host interface{}, ips interface{}) *MockCertSource_ServerCert_Call

ServerCert is a helper method to define mock.On call

  • ctx context.Context
  • host string
  • ips []net.IP

type MockCertSource_ServerCert_Call added in v0.9.0

type MockCertSource_ServerCert_Call struct {
	*mock.Call
}

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

func (*MockCertSource_ServerCert_Call) Return added in v0.9.0

func (*MockCertSource_ServerCert_Call) Run added in v0.9.0

func (*MockCertSource_ServerCert_Call) RunAndReturn added in v0.9.0

type MockChatter

type MockChatter struct {
	mock.Mock
}

MockChatter is an autogenerated mock type for the Chatter type

func NewMockChatter

func NewMockChatter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChatter

NewMockChatter creates a new instance of MockChatter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockChatter) EXPECT

func (_m *MockChatter) EXPECT() *MockChatter_Expecter

func (*MockChatter) Propose

func (_mock *MockChatter) Propose(ctx context.Context, system string, user string, onToken func(string)) (reel.Storyboard, string, error)

Propose provides a mock function for the type MockChatter

type MockChatter_Expecter

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

func (*MockChatter_Expecter) Propose

func (_e *MockChatter_Expecter) Propose(ctx interface{}, system interface{}, user interface{}, onToken interface{}) *MockChatter_Propose_Call

Propose is a helper method to define mock.On call

  • ctx context.Context
  • system string
  • user string
  • onToken func(string)

type MockChatter_Propose_Call

type MockChatter_Propose_Call struct {
	*mock.Call
}

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

func (*MockChatter_Propose_Call) Return

func (*MockChatter_Propose_Call) Run

func (_c *MockChatter_Propose_Call) Run(run func(ctx context.Context, system string, user string, onToken func(string))) *MockChatter_Propose_Call

func (*MockChatter_Propose_Call) RunAndReturn

func (_c *MockChatter_Propose_Call) RunAndReturn(run func(ctx context.Context, system string, user string, onToken func(string)) (reel.Storyboard, string, error)) *MockChatter_Propose_Call

type MockConnectionChecker added in v0.8.0

type MockConnectionChecker struct {
	mock.Mock
}

MockConnectionChecker is an autogenerated mock type for the ConnectionChecker type

func NewMockConnectionChecker added in v0.8.0

func NewMockConnectionChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConnectionChecker

NewMockConnectionChecker creates a new instance of MockConnectionChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockConnectionChecker) Check added in v0.8.0

func (_mock *MockConnectionChecker) Check(ctx context.Context, cfg *config.Store) ([]refresh.Status, error)

Check provides a mock function for the type MockConnectionChecker

func (*MockConnectionChecker) EXPECT added in v0.8.0

type MockConnectionChecker_Check_Call added in v0.8.0

type MockConnectionChecker_Check_Call struct {
	*mock.Call
}

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

func (*MockConnectionChecker_Check_Call) Return added in v0.8.0

func (*MockConnectionChecker_Check_Call) Run added in v0.8.0

func (*MockConnectionChecker_Check_Call) RunAndReturn added in v0.8.0

type MockConnectionChecker_Expecter added in v0.8.0

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

func (*MockConnectionChecker_Expecter) Check added in v0.8.0

func (_e *MockConnectionChecker_Expecter) Check(ctx interface{}, cfg interface{}) *MockConnectionChecker_Check_Call

Check is a helper method to define mock.On call

  • ctx context.Context
  • cfg *config.Store

type MockGenerator

type MockGenerator struct {
	mock.Mock
}

MockGenerator is an autogenerated mock type for the Generator type

func NewMockGenerator

func NewMockGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGenerator

NewMockGenerator creates a new instance of MockGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockGenerator) Available

func (_mock *MockGenerator) Available() error

Available provides a mock function for the type MockGenerator

func (*MockGenerator) EXPECT

func (_m *MockGenerator) EXPECT() *MockGenerator_Expecter

func (*MockGenerator) Generate

func (_mock *MockGenerator) Generate(ctx context.Context, cfg *config.Store, fs afero.Fs, req gencmd.Request) ([]string, error)

Generate provides a mock function for the type MockGenerator

type MockGenerator_Available_Call

type MockGenerator_Available_Call struct {
	*mock.Call
}

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

func (*MockGenerator_Available_Call) Return

func (*MockGenerator_Available_Call) Run

func (*MockGenerator_Available_Call) RunAndReturn

func (_c *MockGenerator_Available_Call) RunAndReturn(run func() error) *MockGenerator_Available_Call

type MockGenerator_Expecter

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

func (*MockGenerator_Expecter) Available

Available is a helper method to define mock.On call

func (*MockGenerator_Expecter) Generate

func (_e *MockGenerator_Expecter) Generate(ctx interface{}, cfg interface{}, fs interface{}, req interface{}) *MockGenerator_Generate_Call

Generate is a helper method to define mock.On call

  • ctx context.Context
  • cfg *config.Store
  • fs afero.Fs
  • req gencmd.Request

type MockGenerator_Generate_Call

type MockGenerator_Generate_Call struct {
	*mock.Call
}

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

func (*MockGenerator_Generate_Call) Return

func (*MockGenerator_Generate_Call) Run

func (*MockGenerator_Generate_Call) RunAndReturn

type MockGitOps

type MockGitOps struct {
	mock.Mock
}

MockGitOps is an autogenerated mock type for the GitOps type

func NewMockGitOps

func NewMockGitOps(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGitOps

NewMockGitOps creates a new instance of MockGitOps. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockGitOps) Clone

func (_mock *MockGitOps) Clone(remote string, branch string, targetDir string) error

Clone provides a mock function for the type MockGitOps

func (*MockGitOps) Commit

func (_mock *MockGitOps) Commit(projectDir string, relPath string, msg string) studio.CommitStatus

Commit provides a mock function for the type MockGitOps

func (*MockGitOps) DirtySlugs added in v0.9.0

func (_mock *MockGitOps) DirtySlugs(projectDir string, reelRootRel string) map[string]bool

DirtySlugs provides a mock function for the type MockGitOps

func (*MockGitOps) EXPECT

func (_m *MockGitOps) EXPECT() *MockGitOps_Expecter

func (*MockGitOps) OpenInMemory

func (_mock *MockGitOps) OpenInMemory(remote string, branch string) (studio.MemRepo, error)

OpenInMemory provides a mock function for the type MockGitOps

func (*MockGitOps) Push

func (_mock *MockGitOps) Push(projectDir string) studio.PushStatus

Push provides a mock function for the type MockGitOps

type MockGitOps_Clone_Call

type MockGitOps_Clone_Call struct {
	*mock.Call
}

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

func (*MockGitOps_Clone_Call) Return

func (*MockGitOps_Clone_Call) Run

func (_c *MockGitOps_Clone_Call) Run(run func(remote string, branch string, targetDir string)) *MockGitOps_Clone_Call

func (*MockGitOps_Clone_Call) RunAndReturn

func (_c *MockGitOps_Clone_Call) RunAndReturn(run func(remote string, branch string, targetDir string) error) *MockGitOps_Clone_Call

type MockGitOps_Commit_Call

type MockGitOps_Commit_Call struct {
	*mock.Call
}

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

func (*MockGitOps_Commit_Call) Return

func (*MockGitOps_Commit_Call) Run

func (_c *MockGitOps_Commit_Call) Run(run func(projectDir string, relPath string, msg string)) *MockGitOps_Commit_Call

func (*MockGitOps_Commit_Call) RunAndReturn

func (_c *MockGitOps_Commit_Call) RunAndReturn(run func(projectDir string, relPath string, msg string) studio.CommitStatus) *MockGitOps_Commit_Call

type MockGitOps_DirtySlugs_Call added in v0.9.0

type MockGitOps_DirtySlugs_Call struct {
	*mock.Call
}

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

func (*MockGitOps_DirtySlugs_Call) Return added in v0.9.0

func (_c *MockGitOps_DirtySlugs_Call) Return(stringToBool map[string]bool) *MockGitOps_DirtySlugs_Call

func (*MockGitOps_DirtySlugs_Call) Run added in v0.9.0

func (_c *MockGitOps_DirtySlugs_Call) Run(run func(projectDir string, reelRootRel string)) *MockGitOps_DirtySlugs_Call

func (*MockGitOps_DirtySlugs_Call) RunAndReturn added in v0.9.0

func (_c *MockGitOps_DirtySlugs_Call) RunAndReturn(run func(projectDir string, reelRootRel string) map[string]bool) *MockGitOps_DirtySlugs_Call

type MockGitOps_Expecter

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

func (*MockGitOps_Expecter) Clone

func (_e *MockGitOps_Expecter) Clone(remote interface{}, branch interface{}, targetDir interface{}) *MockGitOps_Clone_Call

Clone is a helper method to define mock.On call

  • remote string
  • branch string
  • targetDir string

func (*MockGitOps_Expecter) Commit

func (_e *MockGitOps_Expecter) Commit(projectDir interface{}, relPath interface{}, msg interface{}) *MockGitOps_Commit_Call

Commit is a helper method to define mock.On call

  • projectDir string
  • relPath string
  • msg string

func (*MockGitOps_Expecter) DirtySlugs added in v0.9.0

func (_e *MockGitOps_Expecter) DirtySlugs(projectDir interface{}, reelRootRel interface{}) *MockGitOps_DirtySlugs_Call

DirtySlugs is a helper method to define mock.On call

  • projectDir string
  • reelRootRel string

func (*MockGitOps_Expecter) OpenInMemory

func (_e *MockGitOps_Expecter) OpenInMemory(remote interface{}, branch interface{}) *MockGitOps_OpenInMemory_Call

OpenInMemory is a helper method to define mock.On call

  • remote string
  • branch string

func (*MockGitOps_Expecter) Push

func (_e *MockGitOps_Expecter) Push(projectDir interface{}) *MockGitOps_Push_Call

Push is a helper method to define mock.On call

  • projectDir string

type MockGitOps_OpenInMemory_Call

type MockGitOps_OpenInMemory_Call struct {
	*mock.Call
}

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

func (*MockGitOps_OpenInMemory_Call) Return

func (*MockGitOps_OpenInMemory_Call) Run

func (_c *MockGitOps_OpenInMemory_Call) Run(run func(remote string, branch string)) *MockGitOps_OpenInMemory_Call

func (*MockGitOps_OpenInMemory_Call) RunAndReturn

func (_c *MockGitOps_OpenInMemory_Call) RunAndReturn(run func(remote string, branch string) (studio.MemRepo, error)) *MockGitOps_OpenInMemory_Call

type MockGitOps_Push_Call

type MockGitOps_Push_Call struct {
	*mock.Call
}

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

func (*MockGitOps_Push_Call) Return

func (*MockGitOps_Push_Call) Run

func (_c *MockGitOps_Push_Call) Run(run func(projectDir string)) *MockGitOps_Push_Call

func (*MockGitOps_Push_Call) RunAndReturn

func (_c *MockGitOps_Push_Call) RunAndReturn(run func(projectDir string) studio.PushStatus) *MockGitOps_Push_Call

type MockMemRepo

type MockMemRepo struct {
	mock.Mock
}

MockMemRepo is an autogenerated mock type for the MemRepo type

func NewMockMemRepo

func NewMockMemRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMemRepo

NewMockMemRepo creates a new instance of MockMemRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockMemRepo) Commit

func (_mock *MockMemRepo) Commit(relPath string, msg string) studio.CommitStatus

Commit provides a mock function for the type MockMemRepo

func (*MockMemRepo) DirtySlugs added in v0.9.0

func (_mock *MockMemRepo) DirtySlugs(reelRootRel string) map[string]bool

DirtySlugs provides a mock function for the type MockMemRepo

func (*MockMemRepo) EXPECT

func (_m *MockMemRepo) EXPECT() *MockMemRepo_Expecter

func (*MockMemRepo) Push

func (_mock *MockMemRepo) Push() studio.PushStatus

Push provides a mock function for the type MockMemRepo

func (*MockMemRepo) WorkFS

func (_mock *MockMemRepo) WorkFS() afero.Fs

WorkFS provides a mock function for the type MockMemRepo

type MockMemRepo_Commit_Call

type MockMemRepo_Commit_Call struct {
	*mock.Call
}

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

func (*MockMemRepo_Commit_Call) Return

func (*MockMemRepo_Commit_Call) Run

func (_c *MockMemRepo_Commit_Call) Run(run func(relPath string, msg string)) *MockMemRepo_Commit_Call

func (*MockMemRepo_Commit_Call) RunAndReturn

func (_c *MockMemRepo_Commit_Call) RunAndReturn(run func(relPath string, msg string) studio.CommitStatus) *MockMemRepo_Commit_Call

type MockMemRepo_DirtySlugs_Call added in v0.9.0

type MockMemRepo_DirtySlugs_Call struct {
	*mock.Call
}

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

func (*MockMemRepo_DirtySlugs_Call) Return added in v0.9.0

func (*MockMemRepo_DirtySlugs_Call) Run added in v0.9.0

func (_c *MockMemRepo_DirtySlugs_Call) Run(run func(reelRootRel string)) *MockMemRepo_DirtySlugs_Call

func (*MockMemRepo_DirtySlugs_Call) RunAndReturn added in v0.9.0

func (_c *MockMemRepo_DirtySlugs_Call) RunAndReturn(run func(reelRootRel string) map[string]bool) *MockMemRepo_DirtySlugs_Call

type MockMemRepo_Expecter

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

func (*MockMemRepo_Expecter) Commit

func (_e *MockMemRepo_Expecter) Commit(relPath interface{}, msg interface{}) *MockMemRepo_Commit_Call

Commit is a helper method to define mock.On call

  • relPath string
  • msg string

func (*MockMemRepo_Expecter) DirtySlugs added in v0.9.0

func (_e *MockMemRepo_Expecter) DirtySlugs(reelRootRel interface{}) *MockMemRepo_DirtySlugs_Call

DirtySlugs is a helper method to define mock.On call

  • reelRootRel string

func (*MockMemRepo_Expecter) Push

Push is a helper method to define mock.On call

func (*MockMemRepo_Expecter) WorkFS

WorkFS is a helper method to define mock.On call

type MockMemRepo_Push_Call

type MockMemRepo_Push_Call struct {
	*mock.Call
}

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

func (*MockMemRepo_Push_Call) Return

func (*MockMemRepo_Push_Call) Run

func (_c *MockMemRepo_Push_Call) Run(run func()) *MockMemRepo_Push_Call

func (*MockMemRepo_Push_Call) RunAndReturn

func (_c *MockMemRepo_Push_Call) RunAndReturn(run func() studio.PushStatus) *MockMemRepo_Push_Call

type MockMemRepo_WorkFS_Call

type MockMemRepo_WorkFS_Call struct {
	*mock.Call
}

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

func (*MockMemRepo_WorkFS_Call) Return

func (*MockMemRepo_WorkFS_Call) Run

func (_c *MockMemRepo_WorkFS_Call) Run(run func()) *MockMemRepo_WorkFS_Call

func (*MockMemRepo_WorkFS_Call) RunAndReturn

func (_c *MockMemRepo_WorkFS_Call) RunAndReturn(run func() afero.Fs) *MockMemRepo_WorkFS_Call

type MockPoster added in v0.8.0

type MockPoster struct {
	mock.Mock
}

MockPoster is an autogenerated mock type for the Poster type

func NewMockPoster added in v0.8.0

func NewMockPoster(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPoster

NewMockPoster creates a new instance of MockPoster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockPoster) EXPECT added in v0.8.0

func (_m *MockPoster) EXPECT() *MockPoster_Expecter

func (*MockPoster) Post added in v0.8.0

func (_mock *MockPoster) Post(ctx context.Context, fs afero.Fs, stores publish.Stores, root string, slug string, platforms []string) ([]postcmd.Result, error)

Post provides a mock function for the type MockPoster

func (*MockPoster) PublishOutlet added in v0.21.0

func (_mock *MockPoster) PublishOutlet(ctx context.Context, fs afero.Fs, stores publish.Stores, root string, target postcmd.Target, platform string) ([]postcmd.Result, error)

PublishOutlet provides a mock function for the type MockPoster

type MockPoster_Expecter added in v0.8.0

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

func (*MockPoster_Expecter) Post added in v0.8.0

func (_e *MockPoster_Expecter) Post(ctx any, fs any, stores any, root any, slug any, platforms any) *MockPoster_Post_Call

Post is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • stores publish.Stores
  • root string
  • slug string
  • platforms []string

func (*MockPoster_Expecter) PublishOutlet added in v0.21.0

func (_e *MockPoster_Expecter) PublishOutlet(ctx any, fs any, stores any, root any, target any, platform any) *MockPoster_PublishOutlet_Call

PublishOutlet is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • stores publish.Stores
  • root string
  • target postcmd.Target
  • platform string

type MockPoster_Post_Call added in v0.8.0

type MockPoster_Post_Call struct {
	*mock.Call
}

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

func (*MockPoster_Post_Call) Return added in v0.8.0

func (_c *MockPoster_Post_Call) Return(results []postcmd.Result, err error) *MockPoster_Post_Call

func (*MockPoster_Post_Call) Run added in v0.8.0

func (_c *MockPoster_Post_Call) Run(run func(ctx context.Context, fs afero.Fs, stores publish.Stores, root string, slug string, platforms []string)) *MockPoster_Post_Call

func (*MockPoster_Post_Call) RunAndReturn added in v0.8.0

func (_c *MockPoster_Post_Call) RunAndReturn(run func(ctx context.Context, fs afero.Fs, stores publish.Stores, root string, slug string, platforms []string) ([]postcmd.Result, error)) *MockPoster_Post_Call

type MockPoster_PublishOutlet_Call added in v0.21.0

type MockPoster_PublishOutlet_Call struct {
	*mock.Call
}

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

func (*MockPoster_PublishOutlet_Call) Return added in v0.21.0

func (*MockPoster_PublishOutlet_Call) Run added in v0.21.0

func (_c *MockPoster_PublishOutlet_Call) Run(run func(ctx context.Context, fs afero.Fs, stores publish.Stores, root string, target postcmd.Target, platform string)) *MockPoster_PublishOutlet_Call

func (*MockPoster_PublishOutlet_Call) RunAndReturn added in v0.21.0

func (_c *MockPoster_PublishOutlet_Call) RunAndReturn(run func(ctx context.Context, fs afero.Fs, stores publish.Stores, root string, target postcmd.Target, platform string) ([]postcmd.Result, error)) *MockPoster_PublishOutlet_Call

type MockQuotaReporter added in v0.8.0

type MockQuotaReporter struct {
	mock.Mock
}

MockQuotaReporter is an autogenerated mock type for the QuotaReporter type

func NewMockQuotaReporter added in v0.8.0

func NewMockQuotaReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockQuotaReporter

NewMockQuotaReporter creates a new instance of MockQuotaReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockQuotaReporter) EXPECT added in v0.8.0

func (*MockQuotaReporter) Quota added in v0.8.0

func (_mock *MockQuotaReporter) Quota(ctx context.Context, cfg config.Reader) (provider.Quota, error)

Quota provides a mock function for the type MockQuotaReporter

type MockQuotaReporter_Expecter added in v0.8.0

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

func (*MockQuotaReporter_Expecter) Quota added in v0.8.0

func (_e *MockQuotaReporter_Expecter) Quota(ctx interface{}, cfg interface{}) *MockQuotaReporter_Quota_Call

Quota is a helper method to define mock.On call

  • ctx context.Context
  • cfg config.Reader

type MockQuotaReporter_Quota_Call added in v0.8.0

type MockQuotaReporter_Quota_Call struct {
	*mock.Call
}

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

func (*MockQuotaReporter_Quota_Call) Return added in v0.8.0

func (*MockQuotaReporter_Quota_Call) Run added in v0.8.0

func (*MockQuotaReporter_Quota_Call) RunAndReturn added in v0.8.0

type MockRenderer

type MockRenderer struct {
	mock.Mock
}

MockRenderer is an autogenerated mock type for the Renderer type

func NewMockRenderer

func NewMockRenderer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRenderer

NewMockRenderer creates a new instance of MockRenderer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRenderer) Available

func (_mock *MockRenderer) Available() error

Available provides a mock function for the type MockRenderer

func (*MockRenderer) BedSeconds added in v0.8.0

func (_mock *MockRenderer) BedSeconds(ctx context.Context, fs afero.Fs, cfg *config.Store, dir string) float64

BedSeconds provides a mock function for the type MockRenderer

func (*MockRenderer) EXPECT

func (_m *MockRenderer) EXPECT() *MockRenderer_Expecter

func (*MockRenderer) Render

func (_mock *MockRenderer) Render(ctx context.Context, fs afero.Fs, cfg *config.Store, dir string, opts studio.RenderOpts) (studio.RenderResult, error)

Render provides a mock function for the type MockRenderer

func (*MockRenderer) Timeline added in v0.8.0

func (_mock *MockRenderer) Timeline(ctx context.Context, fs afero.Fs, cfg *config.Store, dir string, slug string, sb reel.Storyboard) (reelcmd.Plan, error)

Timeline provides a mock function for the type MockRenderer

type MockRenderer_Available_Call

type MockRenderer_Available_Call struct {
	*mock.Call
}

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

func (*MockRenderer_Available_Call) Return

func (*MockRenderer_Available_Call) Run

func (*MockRenderer_Available_Call) RunAndReturn

func (_c *MockRenderer_Available_Call) RunAndReturn(run func() error) *MockRenderer_Available_Call

type MockRenderer_BedSeconds_Call added in v0.8.0

type MockRenderer_BedSeconds_Call struct {
	*mock.Call
}

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

func (*MockRenderer_BedSeconds_Call) Return added in v0.8.0

func (*MockRenderer_BedSeconds_Call) Run added in v0.8.0

func (*MockRenderer_BedSeconds_Call) RunAndReturn added in v0.8.0

type MockRenderer_Expecter

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

func (*MockRenderer_Expecter) Available

Available is a helper method to define mock.On call

func (*MockRenderer_Expecter) BedSeconds added in v0.8.0

func (_e *MockRenderer_Expecter) BedSeconds(ctx interface{}, fs interface{}, cfg interface{}, dir interface{}) *MockRenderer_BedSeconds_Call

BedSeconds is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • cfg *config.Store
  • dir string

func (*MockRenderer_Expecter) Render

func (_e *MockRenderer_Expecter) Render(ctx interface{}, fs interface{}, cfg interface{}, dir interface{}, opts interface{}) *MockRenderer_Render_Call

Render is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • cfg *config.Store
  • dir string
  • opts studio.RenderOpts

func (*MockRenderer_Expecter) Timeline added in v0.8.0

func (_e *MockRenderer_Expecter) Timeline(ctx interface{}, fs interface{}, cfg interface{}, dir interface{}, slug interface{}, sb interface{}) *MockRenderer_Timeline_Call

Timeline is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • cfg *config.Store
  • dir string
  • slug string
  • sb reel.Storyboard

type MockRenderer_Render_Call

type MockRenderer_Render_Call struct {
	*mock.Call
}

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

func (*MockRenderer_Render_Call) Return

func (*MockRenderer_Render_Call) Run

func (*MockRenderer_Render_Call) RunAndReturn

type MockRenderer_Timeline_Call added in v0.8.0

type MockRenderer_Timeline_Call struct {
	*mock.Call
}

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

func (*MockRenderer_Timeline_Call) Return added in v0.8.0

func (*MockRenderer_Timeline_Call) Run added in v0.8.0

func (*MockRenderer_Timeline_Call) RunAndReturn added in v0.8.0

func (_c *MockRenderer_Timeline_Call) RunAndReturn(run func(ctx context.Context, fs afero.Fs, cfg *config.Store, dir string, slug string, sb reel.Storyboard) (reelcmd.Plan, error)) *MockRenderer_Timeline_Call

type MockSocialComposer added in v0.8.0

type MockSocialComposer struct {
	mock.Mock
}

MockSocialComposer is an autogenerated mock type for the SocialComposer type

func NewMockSocialComposer added in v0.8.0

func NewMockSocialComposer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSocialComposer

NewMockSocialComposer creates a new instance of MockSocialComposer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockSocialComposer) Compose added in v0.8.0

func (_mock *MockSocialComposer) Compose(ctx context.Context, fs afero.Fs, cfg config.Reader, root string, slug string, platform string, ground socialcmd.Grounding) (social.Set, error)

Compose provides a mock function for the type MockSocialComposer

func (*MockSocialComposer) ComposePiece added in v0.21.0

func (_mock *MockSocialComposer) ComposePiece(ctx context.Context, fs afero.Fs, cfg config.Reader, root string, target social.Target, platform string, ground socialcmd.Grounding) (social.Set, error)

ComposePiece provides a mock function for the type MockSocialComposer

func (*MockSocialComposer) EXPECT added in v0.8.0

type MockSocialComposer_ComposePiece_Call added in v0.21.0

type MockSocialComposer_ComposePiece_Call struct {
	*mock.Call
}

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

func (*MockSocialComposer_ComposePiece_Call) Return added in v0.21.0

func (*MockSocialComposer_ComposePiece_Call) Run added in v0.21.0

func (*MockSocialComposer_ComposePiece_Call) RunAndReturn added in v0.21.0

type MockSocialComposer_Compose_Call added in v0.8.0

type MockSocialComposer_Compose_Call struct {
	*mock.Call
}

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

func (*MockSocialComposer_Compose_Call) Return added in v0.8.0

func (*MockSocialComposer_Compose_Call) Run added in v0.8.0

func (*MockSocialComposer_Compose_Call) RunAndReturn added in v0.8.0

func (_c *MockSocialComposer_Compose_Call) RunAndReturn(run func(ctx context.Context, fs afero.Fs, cfg config.Reader, root string, slug string, platform string, ground socialcmd.Grounding) (social.Set, error)) *MockSocialComposer_Compose_Call

type MockSocialComposer_Expecter added in v0.8.0

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

func (*MockSocialComposer_Expecter) Compose added in v0.8.0

func (_e *MockSocialComposer_Expecter) Compose(ctx any, fs any, cfg any, root any, slug any, platform any, ground any) *MockSocialComposer_Compose_Call

Compose is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • cfg config.Reader
  • root string
  • slug string
  • platform string
  • ground socialcmd.Grounding

func (*MockSocialComposer_Expecter) ComposePiece added in v0.21.0

func (_e *MockSocialComposer_Expecter) ComposePiece(ctx any, fs any, cfg any, root any, target any, platform any, ground any) *MockSocialComposer_ComposePiece_Call

ComposePiece is a helper method to define mock.On call

  • ctx context.Context
  • fs afero.Fs
  • cfg config.Reader
  • root string
  • target social.Target
  • platform string
  • ground socialcmd.Grounding

type MockSummarizer added in v0.9.0

type MockSummarizer struct {
	mock.Mock
}

MockSummarizer is an autogenerated mock type for the Summarizer type

func NewMockSummarizer added in v0.9.0

func NewMockSummarizer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSummarizer

NewMockSummarizer creates a new instance of MockSummarizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockSummarizer) EXPECT added in v0.9.0

func (*MockSummarizer) Summarise added in v0.9.0

func (_mock *MockSummarizer) Summarise(ctx context.Context, system string, user string) (string, error)

Summarise provides a mock function for the type MockSummarizer

type MockSummarizer_Expecter added in v0.9.0

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

func (*MockSummarizer_Expecter) Summarise added in v0.9.0

func (_e *MockSummarizer_Expecter) Summarise(ctx interface{}, system interface{}, user interface{}) *MockSummarizer_Summarise_Call

Summarise is a helper method to define mock.On call

  • ctx context.Context
  • system string
  • user string

type MockSummarizer_Summarise_Call added in v0.9.0

type MockSummarizer_Summarise_Call struct {
	*mock.Call
}

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

func (*MockSummarizer_Summarise_Call) Return added in v0.9.0

func (*MockSummarizer_Summarise_Call) Run added in v0.9.0

func (*MockSummarizer_Summarise_Call) RunAndReturn added in v0.9.0

func (_c *MockSummarizer_Summarise_Call) RunAndReturn(run func(ctx context.Context, system string, user string) (string, error)) *MockSummarizer_Summarise_Call

Jump to

Keyboard shortcuts

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