Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

krocard
Copy link
Contributor

@krocard krocard commented Oct 9, 2015

  • asString now return the formated string leading to usage improvement
    • Fully unit test Utility.h
    • Simplify appendTitle implementation
    • CommandHandler: simplify the message formating

   

@krocard krocard mentioned this pull request Oct 9, 2015
1 task
@krocard krocard force-pushed the utility-improvements branch 5 times, most recently from a84b8a5 to cdf01e0 Compare October 9, 2015 13:51
@krocard
Copy link
Contributor Author

krocard commented Oct 9, 2015

👍 @dawagner please review

Copy link
Contributor

Choose a reason for hiding this comment

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

This is has a completely different effect than it previously had. Same comment in all places below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, it is completly wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

asString was not returning it's result, leading to more
complicated usage.

Return the formated string instead of using an output parameter.

Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
@krocard krocard force-pushed the utility-improvements branch from ef3d592 to 0cb551b Compare October 9, 2015 16:02
@krocard
Copy link
Contributor Author

krocard commented Oct 9, 2015

100% coverage on Utility.cpp !

@krocard
Copy link
Contributor Author

krocard commented Oct 9, 2015

:shipit: 👍

@krocard
Copy link
Contributor Author

krocard commented Oct 12, 2015

@tcahuzax please review

@dawagner
Copy link
Contributor

:shipit:

@krocard
Copy link
Contributor Author

krocard commented Oct 13, 2015

@tcahuzax please review

@dawagner dawagner modified the milestone: Version 3 Oct 13, 2015
Utility functions were not tested,
introduce unit tests for all functions in Utility.h.

Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
Use `std::string::string(size_t, char)` to simplify the
construction of the help message.

Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
Utility.h contain functions that were all part of
a CUtility class. Nevertheless this class had no invariant
nor asserting any invariant.

Thus this class was only used for its namespace aspect.

Use a real namespace instead.

Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
@krocard krocard force-pushed the utility-improvements branch from 0cb551b to 9ffcd54 Compare October 13, 2015 15:25
krocard added a commit that referenced this pull request Oct 13, 2015
Utility improvements:
 - asString now return the formated string leading to usage improvement
 - Fully unit test Utility.h
 - Simplify appendTitle implementation
 - CommandHandler: simplify the message formating
@krocard krocard merged commit 1413f7a into intel:master Oct 13, 2015
@krocard krocard deleted the utility-improvements branch October 13, 2015 16:22
@tcahuzax
Copy link
Contributor

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants