Commit 38ee1c1
committed
Enhance test coverage and implement interface-based HTTP client design
- Add comprehensive tests for OpenAI service methods (GenerateDiscussion, GenerateSpeech)
- Implement HTTPClient interface to enable proper mocking and testing
- Generate HTTP client mocks using moq for consistent mock generation
- Add tests for CreateHostMap utility function achieving 100% coverage
- Fix test expectations to match actual error behavior instead of changing production code
- Update project configuration with proper gitignore patterns and CI workflow improvements
- Increase overall test coverage significantly through targeted testing of previously untested functions
The interface-based design improves testability while maintaining backward compatibility.
All OpenAI API interactions are now fully tested with proper mocking.1 parent 13ee3b3 commit 38ee1c1
10 files changed
Lines changed: 1250 additions & 40 deletions
File tree
- .github/workflows
- mocks
- podcast
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
0 commit comments