Generate comprehensive unit tests for code functions and methods
Generate unit tests for this code:
${{CODE_TO_TEST}}
Testing framework: ${{TESTING_FRAMEWORK}}
Language: ${{PROGRAMMING_LANGUAGE}}
Requirements:
- Test all public methods/functions
- Include edge cases and boundary conditions
- Test error handling scenarios
- Use descriptive test names
- Include setup and teardown if needed
- Aim for high code coverageOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{CODE_TO_TEST][{TESTING_FRAMEWORK][{PROGRAMMING_LANGUAGE]