Stream beets imports over HTTP.

test(cmdstream): cover BaseEnvironment, exec errors, and grandchild cleanup #34

Merged glerp.sullen.net
targeting main from glerp.sullen.net/goosefoot:test/hygiene-cmdstream
Merged opened by and assigned to glerp.sullen.net
targeting main from glerp.sullen.net/goosefoot:test/hygiene-cmdstream

Summary #

  • Add direct unit test coverage for cmdstream.BaseEnvironment() verifying case-insensitive stripping of GOOSEFOOT_API_KEY variants while preserving unrelated environment variables.
  • Cover cmdstream.Run error boundaries for missing executables (command.Start failure) and oversized output lines exceeding bufio.Scanner limits (bufio.ErrTooLong).
  • Strengthen process-group cancellation testing by spawning an actual background grandchild holding stdout open, synchronizing deterministically on "ready" instead of an arbitrary 50ms timeout, and asserting grandchild PID termination.
Commits 0