Auto-generate comprehensive unit tests with edge cases, mocks, and full coverage.
Generate comprehensive unit tests for this [Language] function/class: ```[language] [Paste your code] ``` Testing framework: [Jest/Pytest/JUnit/Mocha/Go testing] Generate tests for: 1. Happy path (expected inputs) 2. Edge cases: - Empty inputs - Null/undefined values - Min/max values - Type coercion edge cases 3. Error cases (invalid inputs) 4. Boundary conditions 5. Async behavior (if applicable) 6. Mock/stub external dependencies For each test: - Descriptive test name (describe what it tests) - Arrange-Act-Assert structure - Clear assertion messages Also provide: - Code coverage report target - Test data factories - Integration test suggestions