Skip to content

Commit 5bccb4f

Browse files
committed
Keep cache-control merge regressions easy to review
Reflow the two long cache-control regression assertions in transform.rs so the neighboring merge cases stay rustfmt-aligned and easier to scan. This keeps the preserved code change separate from the untracked Markdown design notes the user did not want committed. Constraint: Exclude Markdown design files from the commit while preserving the local code change Rejected: Include docs in the same commit | user explicitly asked to leave Markdown files out Confidence: high Scope-risk: narrow Reversibility: clean Directive: Treat this as a readability-only test change; do not infer runtime behavior changes from it Tested: cargo test --manifest-path src-tauri/Cargo.toml test_anthropic_to_openai_drops_ --lib Tested: cargo check --manifest-path src-tauri/Cargo.toml --tests Tested: pnpm format:check Tested: pnpm typecheck Not-tested: Full application integration and manual flows
1 parent b4f0f7c commit 5bccb4f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src-tauri/src/proxy/providers/transform.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ mod tests {
670670

671671
let result = anthropic_to_openai(input, None).unwrap();
672672
assert_eq!(result["messages"][0]["role"], "system");
673-
assert_eq!(result["messages"][0]["content"], "You are Claude Code.\nBe concise.");
673+
assert_eq!(
674+
result["messages"][0]["content"],
675+
"You are Claude Code.\nBe concise."
676+
);
674677
assert!(result["messages"][0].get("cache_control").is_none());
675678
}
676679

@@ -688,7 +691,10 @@ mod tests {
688691

689692
let result = anthropic_to_openai(input, None).unwrap();
690693
assert_eq!(result["messages"][0]["role"], "system");
691-
assert_eq!(result["messages"][0]["content"], "You are Claude Code.\nBe concise.");
694+
assert_eq!(
695+
result["messages"][0]["content"],
696+
"You are Claude Code.\nBe concise."
697+
);
692698
assert!(result["messages"][0].get("cache_control").is_none());
693699
}
694700

0 commit comments

Comments
 (0)