Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDiskNotFound = errors.New("disk not found")
Functions ¶
func AssertEqualMeta ¶
AssertEqualMeta returns nil if both unused.Meta arguments are equal.
func TestProviderMeta ¶
TestProviderMeta returns nil if the provider properly implements storing metadata.
It accepts a constructor function that should return a valid unused.Provider or an error when it isn't compliant with the semantics of creating a provider.
Types ¶
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk implements unused.Disk for testing purposes.
func (Disk) LastUsedAt ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements unused.Provider for testing purposes.
func NewProvider ¶
NewProvider returns a new test provider that return the given disks as unused.
func (*Provider) ListUnusedDisks ¶
Click to show internal directories.
Click to hide internal directories.