-
Notifications
You must be signed in to change notification settings - Fork 65
[ML] Remove use of XML serialisers in unit tests. #2806
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
Conversation
Replacing the use of XML serialisers in unit tests with equivalent JSON serialisers allows the removal of dependencies on the 3rd party RapidXML library and also the bespoke XML parser and related code. Closes elastic#2804
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Does this mean that we can now remove libxml2 as our dependency? If so, we probably also need to adjust the CMake files and the 3rd party license info.
| core_t::TTime data1[], | ||
| core_t::TTime data2[], | ||
| std::string expectedPersonCounts[], | ||
| SModelParams params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be a const reference?
|
|
||
| void testGathererMultipleSeries(const core_t::TTime startTime, | ||
| const core_t::TTime bucketLength, | ||
| SModelParams params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
params is not used in the function.
I think so. My only hesitation is that it might be needed by one of the boost libraries. I'll check on all platforms before adjusting CMake, docs, build scripts etc. |
We still have a dependency on |
valeriy42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Also, thank you for including the SonarQube linting suggestions.
|


Replacing the use of XML serialisers in unit tests with equivalent JSON serialisers allows the removal of dependencies on the 3rd party RapidXML library and also the bespoke XML parser and related code.
Labelling the PR as
>non-issueas despite it's size it doesn't affect any external code or results.Closes #2804