Moved runner helpers into Catch namespace

not sure they weren't there to start with
This commit is contained in:
Phil Nash 2017-12-05 23:26:21 +00:00
parent aa9d635014
commit 5e063616df

View File

@ -22,12 +22,10 @@
#include <cstdlib>
#include <iomanip>
namespace Catch {
namespace {
namespace {
const int MaxExitCode = 255;
using Catch::IStreamingReporterPtr;
using Catch::IConfigPtr;
using Catch::Config;
IStreamingReporterPtr createReporter(std::string const& reporterName, IConfigPtr const& config) {
auto reporter = Catch::getRegistryHub().getReporterRegistry().create(reporterName, config);
@ -61,7 +59,6 @@ namespace {
Catch::Totals runTests(std::shared_ptr<Config> const& config) {
using namespace Catch;
IStreamingReporterPtr reporter = makeReporter(config);
addListeners(reporter, config);
@ -88,7 +85,6 @@ namespace {
}
void applyFilenamesAsTags(Catch::IConfig const& config) {
using namespace Catch;
auto& tests = const_cast<std::vector<TestCase>&>(getAllTestCasesSorted(config));
for (auto& testCase : tests) {
auto tags = testCase.tags;
@ -110,9 +106,7 @@ namespace {
}
}
}
namespace Catch {
} // anon namespace
Session::Session() {
static bool alreadyInstantiated = false;