Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opts: cleanup ParseEnvFile tests #5494

Merged
merged 1 commit into from
Oct 3, 2024

Commits on Oct 3, 2024

  1. opts: cleanup ParseEnvFile tests

    - Use gotest.tools for assertions
    - Check for expected error messages
    - Don't check for ErrBadKey errors, as it's not used
      as a sentinel error anywhere.
    - Use t.SetEnv() instead of depending on `HOME` being set
    - Use t.TempDir() for writing temporary files
    
    Signed-off-by: Sebastiaan van Stijn <[email protected]>
    thaJeztah committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    b129660 View commit details
    Browse the repository at this point in the history