Skip to content

Increase feedreader module test coverage to 98.5% - #2122

Merged
Seanstoppable merged 1 commit into
wtfutil:trunkfrom
Seanstoppable:seanstoppable-feedreader-test-coverage
Jul 26, 2026
Merged

Seanstoppable merged 1 commit into
wtfutil:trunkfrom
Seanstoppable:seanstoppable-feedreader-test-coverage

Conversation

@Seanstoppable

Copy link
Copy Markdown
Collaborator

Introduces a feedParser interface to decouple feed parsing from network I/O, enabling comprehensive unit testing.

Coverage: 10% -> 98.5%

Changes:

  • Extract feedParser interface with ParseURL and SetAuth methods
  • Add mock parser and tests for Fetch, fetchForFeed, Refresh, content, openStory, toggleDisplayText, NewWidget, NewSettingsFromYAML, and ConfigText
  • Cover edge cases: malformed credentials, alias padding, viewed+selected highlighting

@Seanstoppable
Seanstoppable force-pushed the seanstoppable-feedreader-test-coverage branch from e1dff24 to a62e941 Compare July 23, 2026 02:16
Introduces a feedParser interface to decouple feed parsing from network I/O, enabling comprehensive unit testing.

Changes:
- Extract feedParser interface with ParseURL and SetAuth methods
- Add mock parser and tests for Fetch, fetchForFeed, Refresh, content, openStory, toggleDisplayText, NewWidget, NewSettingsFromYAML, and ConfigText
- Cover edge cases: malformed credentials, alias padding, viewed+selected highlighting
@Seanstoppable
Seanstoppable force-pushed the seanstoppable-feedreader-test-coverage branch from a62e941 to d49ed88 Compare July 23, 2026 02:25
@Seanstoppable
Seanstoppable merged commit a3920f8 into wtfutil:trunk Jul 26, 2026
4 checks passed
@Seanstoppable
Seanstoppable deleted the seanstoppable-feedreader-test-coverage branch July 26, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ 换网址