Commit Graph

3 Commits

Author SHA1 Message Date
winlin
431b842dd1 Proxy: Make internal/env tests hermetic by injecting env and file indirections
Swap direct os.Getenv/Setenv/LookupEnv and os.Open calls in internal/env
for package-level function variables so tests can replace them with
in-memory fakes. Tests no longer mutate process env or hit the filesystem,
making them safe to run in parallel and free of global side effects.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 14:53:44 -04:00
winlin
41ad82e19f Proxy: Raise internal/env coverage to 96% and harden tests against parallel misuse
Adds direct tests for NewEnvironment, loadEnvFile, buildDefaultEnvironmentVariables,
setEnvDefault, and all 22 Environment accessors. All env/cwd-touching tests now use
t.Setenv or t.Chdir, which panic on t.Parallel() and prevent concurrent mutation of
process-global state.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 09:34:04 -04:00
Winlin
460412c4b5
Move build output to bin/, replace godotenv with custom .env parser, and update docs. v7.0.143 (#4661)
- Move build output from `./srs-proxy` to `bin/srs-proxy` following Go
project conventions, updating Makefile, .gitignore, and all
documentation references
- Replace third-party `godotenv` dependency with a custom `.env` parser
that supports comments, `export` prefix, quoted values, escape
sequences, and inline comments — with full unit tests
- Remove `ignore-worklog.md` and update `README.md` with skill-based AI
prompts
- Bump copyright year from 2025 to 2026 across all source files

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:26:33 -04:00