Skip to content

idea: helper for auto cleanup of tempfile #35

@shoenig

Description

@shoenig

There is t.TempDir which creates a tmp directory and cleans itself up at the end of the test. It would be nice if there was something similar for a single file.

var filename string
must.TmpFile(t, "content", &filename) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions