Skip to content

Conversation

@ALiberalVoluntarist
Copy link
Collaborator

Description of Changes

Added tests for WhatsOnChain classes to verify Network enum support and string backward compatibility. The tests cover both WhatsOnChainBroadcaster and WhatsOnChainTracker classes, ensuring proper initialization with both Network enum and string parameters.

Linked Issues / Tickets

Related to the requirement to use Network enum for network parameters instead of string literals.

Testing Procedure

Added comprehensive test cases for:

  • Network enum initialization (MAINNET/TESTNET)

  • String network parameter backward compatibility (main/test/mainnet/testnet)

  • Invalid network parameter validation

  • URL construction validation for both broadcasters and trackers

  • I have added new unit tests

  • All tests pass locally

  • I have tested manually in my local environment

Checklist:

  • I have performed a self-review of my own code
  • [x ] I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have updated CHANGELOG.md with my changes
  • I have run the linter

Note: Documentation and CHANGELOG updates are not checked as this PR only adds tests for future implementation of Network enum support.

Copy link
Collaborator

@voyager1708 voyager1708 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@voyager1708 voyager1708 merged commit d3e4cc3 into master Jan 9, 2025
4 checks passed
@ALiberalVoluntarist
Copy link
Collaborator Author

WoC Broadcaster Network Param #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants