Skip to content

Conversation

@jeremiahjstacey
Copy link
Collaborator

I got bored and thought I'd pick out some low-hanging classes for a couple more tests.

verifying case-insensitive matches for string arguments.
Tests assert that the delegate XMLConfiguration receive the expected
calls.
Created a private constructor in implementation to prevent utility class
instances.

Moved test-scope key format into class instance. Updated uses.

Moved test-scoped time format into class instances.  Updated uses.
Adding case verifying exception on unknown parameter type.
Adding validation to assert the data type of the returned Objects.
Removing useless method override.
Adding tests for the current behavior of the WAF Action classes.
Doing basic testing for some coverage. Nothing too verbose; only testing the content specified in each of the tag subclasses.

public boolean failedRule() {
return this.failed;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This method duplicates the super class' implementation. No point in it.

@jeremiahjstacey
Copy link
Collaborator Author

I think this bumps coverage ~.2%

@kwwall kwwall changed the title Moar tests More tests Nov 1, 2025
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