DeepLX/translate
Bonny07 6012d72ba0 test(translate): add hermetic unit tests for lang resolution, preflight, and oneshot request/decode
The translate package had no tests. These are fully hermetic: callOneshot is exercised against httptest, so go test ./... stays offline and fast.

Covers lang resolution (incl. the EN/PT target-vs-source asymmetry), TranslateByDeepLX preflight validation (404/400/413, pre-network only), callOneshot request shaping and gzip/deflate/br decoding, newInstanceID UUIDv4 shape, and the oneshotRequest JSON contract.
2026-07-08 09:57:56 +09:00
..
oneshot_test.go test(translate): add hermetic unit tests for lang resolution, preflight, and oneshot request/decode 2026-07-08 09:57:56 +09:00
translate_test.go test(translate): add hermetic unit tests for lang resolution, preflight, and oneshot request/decode 2026-07-08 09:57:56 +09:00
translate.go fix(translate): enforce 1500-char text limit + add request timeout (#220) 2026-05-22 13:03:15 +08:00
types.go feat(translate): migrate to oneshot endpoint (#217) 2026-05-22 12:04:44 +08:00