Skip to content

Refactor the string predicate search strategy logic#7

Merged
Tavernari merged 1 commit intomainfrom
refactor-simplify-strategy-logic
Mar 25, 2023
Merged

Refactor the string predicate search strategy logic#7
Tavernari merged 1 commit intomainfrom
refactor-simplify-strategy-logic

Conversation

@Tavernari
Copy link
Copy Markdown
Owner

This pull request aims to improve the StringContainsOperators library by adding several enhancements that will make it easier to use and maintain. The following changes have been made:

Input Kind of each predicate

Added an input kind for each predicate, which helps to simplify the implementation of strategies by allowing them to take in and output only one kind of data. This change will also make it easier to write unit tests for each strategy.

Simplified the implementation of Strategies

We have simplified the implementation of strategies, making it easier to maintain and update them in the future. This change also improves the readability of the code.

Added Unit Tests for each strategy

To ensure that each strategy works as expected, we have added unit tests for each strategy. These tests cover both positive and negative scenarios, ensuring that each strategy behaves as expected in all cases.

Added throw capability when invalid strategy evaluates

We have added a throw capability when an invalid strategy is evaluated. This change ensures that the library is more robust and that errors are caught early, improving overall stability and reliability.

- Adds unit tests for each strategy
- Adds throw capability when invalid strategy evaluates.
@Tavernari Tavernari added the enhancement New feature or request label Mar 25, 2023
@Tavernari Tavernari merged commit b183f47 into main Mar 25, 2023
@Tavernari Tavernari deleted the refactor-simplify-strategy-logic branch March 25, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant