Add comprehensive test suite for searching "foo" functionality #20390
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a comprehensive test suite that demonstrates and validates the search functionality in HPCC Platform for the term "foo". The implementation showcases multiple search approaches available in the platform.
Changes Made
Test Files Added
testing/regress/ecl/search_foo.ecl
- Basic string search demonstrationREGEXFIND
for pattern matchingStd.Str.Find
for position-based searchtesting/regress/ecl/textsearch_foo.ecl
- Advanced text search using TextSearch moduleOR
,AND
,ANDNOT
)$.Common.TextSearch
infrastructuretesting/regress/ecl/search_foo_comprehensive.ecl
- Comprehensive search patternsExpected output files in
testing/regress/ecl/key/
for test validationSearch Methods Demonstrated
The test suite covers all major search capabilities:
Testing & Validation
ecl-test
frameworkThis implementation provides working examples for developers who need to implement search functionality for "foo" or similar terms in their ECL programs, while also serving as regression tests to ensure the platform's search capabilities continue to work correctly.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.