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

[ML] Replace boost::size in model unit tests #1517

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

edsavage
Copy link
Contributor

Use modern C++ data structures, initialisation to remove the need for
boost::size.

Use uniform braced initialisation of variables consistently.

Relates to #1477

Use modern C++ data structures, initialisation to remove the need for
boost::size.

Use uniform braced initialisation of variables consistently.
Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

using TStrSizePrVec = std::vector<TStrSizePr>;
using TStrSizePrVecVec = std::vector<TStrSizePrVec>;
using TStrSizePrVecVecVec = std::vector<TStrSizePrVecVec>;
using TStrUInt64Map = std::map<std::string, uint64_t>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would still be good to work towards having all these types as public members of the test fixture rather than in the global namespace, but it can wait for a subsequent PR in the series.

@edsavage edsavage merged commit 53216fe into elastic:master Sep 30, 2020
edsavage added a commit to edsavage/ml-cpp that referenced this pull request Sep 30, 2020
Use modern C++ data structures, initialisation to remove the need for
boost::size.

Use uniform braced initialisation of variables consistently.
@edsavage edsavage deleted the refactor_model_test_boost_size branch September 30, 2020 14:24
edsavage added a commit that referenced this pull request Sep 30, 2020
Use modern C++ data structures, initialisation to remove the need for
boost::size.

Use uniform braced initialisation of variables consistently.

Backports #1517
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants