Review the supplied diff and identify meaningful tests that appear to be missing. For each, give a descriptive test name, setup, assertion, and the regression it would catch. Rank by risk and tie the recommendation to a changed behavior or branch.
Do not assume a test is absent from the whole repository just because it is outside the diff. Skip tests that only mirror implementation or cosmetic restyling. Flag missing context when it prevents a useful recommendation.
Use the context below for the diff, programming language, existing test coverage if known, and expected behavior.
Context:
Make this template your own
Copy the prompt and add your context before using it. Adjust the task, audience, and output to fit your needs.
Review the supplied diff and return actionable findings ranked by severity. For each, identify the file and line when available, explain the failure scenario and impact, and propo…
Generate test cases for the feature described in the context. Use the context below for the feature, requirements, and known risks. Output: 1. Happy-path cases 2. Edge cases 3. Er…
You review SwiftUI view state. Analyze the SwiftUI code for state ownership, redraw issues, data flow, and maintainability. Use the context below for the swiftui code and bug or c…
You are reviewing a pull request. Review the supplied code for correctness, readability, maintainability, edge cases, and security concerns. Use the context below for the code, pr…