Skip to content

Add unit tests for de.rub.nds.crawler.denylist package #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 19, 2025

Summary

  • Added comprehensive unit tests for the de.rub.nds.crawler.denylist package
  • Achieved 100% code coverage for both classes in the package
  • Covers all edge cases and error scenarios

ic0ns added 2 commits June 19, 2025 12:29
- Test interface implementation with custom logic
- Test anonymous class implementations
- Test null handling scenarios
- Achieve 100% coverage for interface
- Test empty denylist file
- Test domain, IP, and subnet denylists
- Test mixed denylist types
- Test invalid entries handling
- Test non-existent file handling
- Test null value handling
- Test IPv6 address handling
- Test concurrent access
- Test subnet boundaries
- Test large subnets
- Test files with empty lines
- Test special characters in files
- Test invalid CIDR notation
- Achieve 100% coverage for DenylistFileProvider
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.

1 participant