repo

package
v0.0.0-...-2f019a4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IProjectRepo

type IProjectRepo interface {
	// WriteFile serve caller to given path and body to write file
	WriteFile(filePath string, tpl []byte, data any, overwrite bool) error
}

IProjectRepo declare project functions

func CreateRepo

func CreateRepo() (IProjectRepo, error)

func NewImpl

func NewImpl() IProjectRepo

NewImpl return IProjectRepo

type MockIProjectRepo

type MockIProjectRepo struct {
	mock.Mock
}

MockIProjectRepo is an autogenerated mock type for the IProjectRepo type

func NewMockIProjectRepo

func NewMockIProjectRepo(t mockConstructorTestingTNewMockIProjectRepo) *MockIProjectRepo

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

func (*MockIProjectRepo) WriteFile

func (_m *MockIProjectRepo) WriteFile(filePath string, tpl []byte, data interface{}, overwrite bool) error

WriteFile provides a mock function with given fields: filePath, tpl, data, overwrite

Jump to

Keyboard shortcuts

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