Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreAllPathsEmpty ¶
AreAllPathsEmpty checks if the provided paths are all nonexistent files or empty directories
Types ¶
type ArchiveDependencyChecker ¶
type ArchiveDependencyChecker interface {
CheckDependencies() bool
}
ArchiveDependencyChecker ...
type ArchiveDependencyCheckerMock ¶
type ArchiveDependencyCheckerMock struct { // CheckDependenciesFunc mocks the CheckDependencies method. CheckDependenciesFunc func() bool // contains filtered or unexported fields }
ArchiveDependencyCheckerMock is a mock implementation of ArchiveDependencyChecker.
func TestSomethingThatUsesArchiveDependencyChecker(t *testing.T) { // make and configure a mocked ArchiveDependencyChecker mockedArchiveDependencyChecker := &ArchiveDependencyCheckerMock{ CheckDependenciesFunc: func() bool { panic("mock out the CheckDependencies method") }, } // use mockedArchiveDependencyChecker in code that requires ArchiveDependencyChecker // and then make assertions. }
func (*ArchiveDependencyCheckerMock) CheckDependencies ¶
func (mock *ArchiveDependencyCheckerMock) CheckDependencies() bool
CheckDependencies calls CheckDependenciesFunc.
func (*ArchiveDependencyCheckerMock) CheckDependenciesCalls ¶
func (mock *ArchiveDependencyCheckerMock) CheckDependenciesCalls() []struct { }
CheckDependenciesCalls gets all the calls that were made to CheckDependencies. Check the length with:
len(mockedArchiveDependencyChecker.CheckDependenciesCalls())
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver ...
func NewArchiver ¶
func NewArchiver(logger log.Logger, envRepo env.Repository, archiveDependencyChecker ArchiveDependencyChecker) *Archiver
NewArchiver ...
type DependencyChecker ¶
type DependencyChecker struct {
// contains filtered or unexported fields
}
DependencyChecker ...
func NewDependencyChecker ¶
func NewDependencyChecker(logger log.Logger, envRepo env.Repository) *DependencyChecker
NewDependencyChecker ...
func (*DependencyChecker) CheckDependencies ¶
func (dc *DependencyChecker) CheckDependencies() bool
CheckDependencies ...
Click to show internal directories.
Click to hide internal directories.