Skip to content
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

Test cases for uncovered methods in the opendatakit.data class #296

Open
wants to merge 3 commits into
base: upgrade-jdk11
Choose a base branch
from

Conversation

xadina02
Copy link

@xadina02 xadina02 commented Oct 22, 2024

This pull request presents test coverage for uncovered functions in the ColorRule data class.

This involves writing tests to cover the behavior and functionality of the following methods within the java class against all possible scenarios..

  • testGetJsonRepresentation: Returns a JSON representation of the color rule's key attributes (as a TreeMap), making it easy to serialize the rule for web APIs or storage.

  • testCheckMatch : This is the main logic that determines if the rule matches a given row of data

Below is a screenshot of successful tests...

Screenshot from 2024-10-23 14-46-53

In light with the issue opened here..

@xadina02
Copy link
Author

@wbrunette please review my PR

@xadina02 xadina02 changed the title Test cases for uncovered methods in the opendatakit.data class - [WIP] Test cases for uncovered methods in the opendatakit.data class Oct 23, 2024
@wbrunette wbrunette changed the base branch from development to upgrade-jdk11 January 22, 2025 20:26
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