Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemManager ¶
type FilesystemManager struct {
// contains filtered or unexported fields
}
FilesystemManager manages folders used by OSHA tests
func NewFilesystemManager ¶
func NewFilesystemManager(logger *slog.Logger) (*FilesystemManager, error)
Creates a new FilesystemManager instance
func (*FilesystemManager) Close ¶
func (m *FilesystemManager) Close() error
Delete the test dir and snapshot dir
func (*FilesystemManager) GetTestDir ¶
func (m *FilesystemManager) GetTestDir() string
Get the test dir
func (*FilesystemManager) RevertToSnapshot ¶
func (m *FilesystemManager) RevertToSnapshot(name string) error
Revert to a snapshot of the test dir
func (*FilesystemManager) TakeSnapshot ¶
func (m *FilesystemManager) TakeSnapshot(name string) error
Take a snapshot of the current test dir
Click to show internal directories.
Click to hide internal directories.