Skip to content

Refactor output test runner into standalone module.#277

Merged
EricWF merged 8 commits intogoogle:masterfrom
efcs:refactor-output-test
Aug 28, 2016
Merged

Refactor output test runner into standalone module.#277
EricWF merged 8 commits intogoogle:masterfrom
efcs:refactor-output-test

Conversation

@EricWF
Copy link
Contributor

@EricWF EricWF commented Aug 18, 2016

I plan to commit this without review. I just want to make sure the bots handle it first.

@AppVeyorBot
Copy link

Build benchmark 370 failed (commit f96d0d647b by @EricWF)

@AppVeyorBot
Copy link

Build benchmark 371 failed (commit eef9b59d3f by @EricWF)

@AppVeyorBot
Copy link

Build benchmark 372 failed (commit cb64c59b21 by @EricWF)

@AppVeyorBot
Copy link

Build benchmark 373 failed (commit 1975afc95e by @EricWF)

@AppVeyorBot
Copy link

Build benchmark 375 completed (commit 47efba584b by @EricWF)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 87.586% when pulling e044b90 on efcs:refactor-output-test into 577baa0 on google:master.

@AppVeyorBot
Copy link

Build benchmark 377 completed (commit ea906a9f41 by @EricWF)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.648% when pulling d7b9565 on efcs:refactor-output-test into 577baa0 on google:master.


namespace {

std::string dec_re = "[0-9]*[.]?[0-9]+([eE][-+][0-9]+)?";
Copy link
Member

@dmah42 dmah42 Aug 18, 2016

Choose a reason for hiding this comment

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

a static non-pod defined in a header? say it ain't so!

this should probably be

extern const char* const dec_re;

and then in the .cc

const char* const dec_re = "...";

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The non-pod part is definitely an issue, but static initialization is safer if the initializer is in the header so the compiler can see it.

@dmah42
Copy link
Member

dmah42 commented Aug 18, 2016

so much cleaner :)

@EricWF EricWF merged commit 0ed4456 into google:master Aug 28, 2016
@EricWF EricWF deleted the refactor-output-test branch August 28, 2016 19:24
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 87.586% when pulling 8cc226e on efcs:refactor-output-test into 577baa0 on google:master.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants