Repository navigation
Commit 54504a2
committed
test(api): cover the streaming-path prompt_cache_key omission
What: add a createMessage-level test asserting that the Responses request
body carries no prompt_cache_key when no metadata is supplied.
Why: the omission was only pinned through the private buildRequestBody and
through completePrompt, which builds its own body inline and never reaches
buildRequestBody. A fallback task id introduced on the streaming path
(createMessage -> handleResponsesApiMessage -> buildRequestBody) would have
passed both. The new test fails on exactly that mutant.
Impact: test-only, +13 lines, no production change. Stryker's changed-line
budget excludes __tests__, so the 12/500 gate figure is unchanged.1 parent 7011fec commit 54504a2
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1526 | 1539 | | |
1527 | 1540 | | |
1528 | 1541 | | |
| |||
0 commit comments