8000 Audit the creation and deletion of temp folders in test suites · Issue #807 · go-git/go-git · GitHub
[go: up one dir, main page]

Skip to content
Audit the creation and deletion of temp folders in test suites #807
Closed
@AriehSchneier

Description

@AriehSchneier

We use gocheck for running tests via suites, gocheck allows for setup/teardown for the entire suite and for each test (see documentation here: https://labix.org/gocheck).

We also have a number of suites/tests which setup temporary directories and then delete them afterwards. gocheck however already has this feature built in: c.MkDir() which will create a temporary folder that will automatically be removed at the end. For example there is quite a lot of usage of TemporalDir() we also have multiple TemporalFilesystem()s, can also search for util.TempDir and os.MkdirTemp.

Audit all cases to use the built in temporary directory which reduces the code as well as ensures we clean up correctly at the end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0