Skip to content

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
BukunmiOla added a commit to BukunmiOla/androidlibrary that referenced this pull request Feb 18, 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