Skip to content

provider: relocate consume test helper out of production source - #654

Merged
glemsom merged 1 commit into
mainfrom
647-relocate-consume-test-helper
Aug 29, 2026
Merged

provider: relocate consume test helper out of production source#654
glemsom merged 1 commit into
mainfrom
647-relocate-consume-test-helper

Conversation

@glemsom

@glemsom glemsom commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Fixes #647

What

consume(Stream) is a test-only utility (10+ call sites in openai_test.go) living in non-test source, so it is dead in every production build. Relocated it into a dedicated consume_test.go test helper file and dropped the now-unused io import from provider.go.

Acceptance criteria

  • consume moved to the provider test package / a test helper file
  • No production source references consume
  • go build ./... and go test ./internal/provider/... pass

consume(Stream) is a test-only utility (10+ call sites in openai_test.go)
living in non-test source, so it is dead in every production build. Move
it to a dedicated _test.go helper file, dropping the now-unused io import
from provider.go. Fixes #647.
@glemsom
glemsom merged commit a1ff631 into main Aug 29, 2026
1 check passed
@glemsom
glemsom deleted the 647-relocate-consume-test-helper branch August 29, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dead code: relocate consume test helper out of provider source

1 participant