Skip to content

sdk: split translator test files to match the source layout - #402

Merged
aaliboyev merged 1 commit into
mainfrom
refactor/translator-test-splits
Jul 30, 2026
Merged

sdk: split translator test files to match the source layout#402
aaliboyev merged 1 commit into
mainfrom
refactor/translator-test-splits

Conversation

@aaliboyev

Copy link
Copy Markdown
Member

Completes the decomposition series (#400, #401) on the test side — pure moves, identical test counts verified (anthropic 88, openai 149, gemini 41):

  • anthropic/translator_canonical_test.go (2598) → per-area files mirroring the source split (request_parse / request_serialize / response / stream_to_canonical / stream_from_canonical), plus helpers_test.go (shared builders) and e2e_test.go (cross-shape composition).
  • openai/translator_cc_test.go (1901) → cc_request_parse / cc_request_serialize / cc_response / cc_stream tests; shared helpers → helpers_test.go.
  • openai/translator_responses_test.go (2143) → responses_request_canonical / responses_items_canonical / responses_response_canonical / responses_stream tests; the two cross-shape E2E tests → e2e_test.go.

Largest test file is now 1056 lines. Stacked on #401.

Pure moves: per-area test files mirror the split source files; shared
test helpers land in helpers_test.go, cross-shape composition tests in
e2e_test.go.
@aaliboyev
aaliboyev changed the base branch from refactor/translator-splits to main July 30, 2026 00:35
@aaliboyev
aaliboyev merged commit 0380348 into main Jul 30, 2026
1 check passed
@aaliboyev
aaliboyev deleted the refactor/translator-test-splits branch July 30, 2026 00:35
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.

1 participant