[PR #10594] lint: enable usetesting, disable tenv #13288

Closed
opened 2026-04-13 00:22:58 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10594

State: closed
Merged: Yes


usetesting prevents mistakes when writing unit tests such as using os.MkdirTemp() instead of t.TempDir() which handles error cases as well as cleaning up the temp directory and all contents. it also covers t.Setenv() cases previously covered by tenv

**Original Pull Request:** https://github.com/ollama/ollama/pull/10594 **State:** closed **Merged:** Yes --- `usetesting` prevents mistakes when writing unit tests such as using `os.MkdirTemp()` instead of `t.TempDir()` which handles error cases as well as cleaning up the temp directory and all contents. it also covers `t.Setenv()` cases previously covered by `tenv`
GiteaMirror added the pull-request label 2026-04-13 00:22:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13288