Question 340
Two independently scoped GitHub Copilot requirements are being reviewed. Requirement A: A reviewer notices repetitive boilerplate in a service adapter. Requirement B: A developer needs a script to transform CSV exports into a canonical schema. Choose TWO changes that directly cover A and B.
Explanation
Correct Answers
This action addresses requirement A: A reviewer notices repetitive boilerplate in a service adapter. AI-assisted boilerplate reduction must preserve compatibility. Verify by observing: Unit and contract tests confirm the adapter's behavior and type signatures.
This action addresses requirement B: A developer needs a script to transform CSV exports into a canonical schema. Data-transformation assistance needs explicit schemas and test fixtures. Verify by observing: The script handles nulls, quoting and expected headers on representative fixtures.
Incorrect Answers
Asynchronous modernization requires behavioral regression checks. The two requirements instead call for these controls: (A) Use Copilot to propose a concise extraction with unchanged public interfaces; (B) Provide a schema mapping and generate a transformation with validation tests.
Copilot-generated test cases are proposals; realistic failure injection, assertions and execution against pinned dependencies establish useful coverage. The two requirements instead call for these controls: (A) Use Copilot to propose a concise extraction with unchanged public interfaces; (B) Provide a schema mapping and generate a transformation with validation tests.
Performance optimization in tests must not compromise isolation. The two requirements instead call for these controls: (A) Use Copilot to propose a concise extraction with unchanged public interfaces; (B) Provide a schema mapping and generate a transformation with validation tests.