Skip to content

Commit

Permalink
Refactor runner: Move generator package to runner/
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jul 23, 2017
1 parent ad474d7 commit 9e95445
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 41 deletions.
26 changes: 13 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ set(INCLUDE
include/tcframe/evaluator/scorer/DiffScorer.hpp
include/tcframe/evaluator/scorer/Scorer.hpp
include/tcframe/evaluator/scorer/ScoringResult.hpp
include/tcframe/generator.hpp
include/tcframe/generator/DefaultGeneratorLogger.hpp
include/tcframe/generator/GenerationException.hpp
include/tcframe/generator/GenerationOptions.hpp
include/tcframe/generator/Generator.hpp
include/tcframe/generator/GeneratorLogger.hpp
include/tcframe/generator/TestCaseGenerator.hpp
include/tcframe/grader.hpp
include/tcframe/grader/BriefGraderLogger.hpp
include/tcframe/grader/DefaultGraderLogger.hpp
Expand All @@ -90,6 +83,13 @@ set(INCLUDE
include/tcframe/runner/aggregator/AggregatorRegistry.hpp
include/tcframe/runner/aggregator/MinAggregator.hpp
include/tcframe/runner/aggregator/SumAggregator.hpp
include/tcframe/runner/generator.hpp
include/tcframe/runner/generator/DefaultGeneratorLogger.hpp
include/tcframe/runner/generator/GenerationException.hpp
include/tcframe/runner/generator/GenerationOptions.hpp
include/tcframe/runner/generator/Generator.hpp
include/tcframe/runner/generator/GeneratorLogger.hpp
include/tcframe/runner/generator/TestCaseGenerator.hpp
include/tcframe/runner/logger.hpp
include/tcframe/runner/logger/RunnerLogger.hpp
include/tcframe/runner/core.hpp
Expand Down Expand Up @@ -166,12 +166,6 @@ set(TEST_UNIT
test/unit/tcframe/evaluator/communicator/MockCommunicator.hpp
test/unit/tcframe/evaluator/scorer/CustomScorerTests.cpp
test/unit/tcframe/evaluator/scorer/MockScorer.hpp
test/unit/tcframe/generator/DefaultGeneratorLoggerTests.cpp
test/unit/tcframe/generator/GeneratorTests.cpp
test/unit/tcframe/generator/MockGenerator.hpp
test/unit/tcframe/generator/MockGeneratorLogger.hpp
test/unit/tcframe/generator/MockTestCaseGenerator.hpp
test/unit/tcframe/generator/TestCaseGeneratorTests.cpp
test/unit/tcframe/grader/BriefGraderLoggerTests.cpp
test/unit/tcframe/grader/DefaultGraderLoggerTests.cpp
test/unit/tcframe/grader/GraderTests.cpp
Expand All @@ -188,6 +182,12 @@ set(TEST_UNIT
test/unit/tcframe/runner/aggregator/MockAggregator.hpp
test/unit/tcframe/runner/aggregator/MockAggregatorRegistry.hpp
test/unit/tcframe/runner/aggregator/SumAggregatorTests.cpp
test/unit/tcframe/runner/generator/DefaultGeneratorLoggerTests.cpp
test/unit/tcframe/runner/generator/GeneratorTests.cpp
test/unit/tcframe/runner/generator/MockGenerator.hpp
test/unit/tcframe/runner/generator/MockGeneratorLogger.hpp
test/unit/tcframe/runner/generator/MockTestCaseGenerator.hpp
test/unit/tcframe/runner/generator/TestCaseGeneratorTests.cpp
test/unit/tcframe/runner/logger/MockRunnerLogger.hpp
test/unit/tcframe/runner/logger/RunnerLoggerTests.cpp
test/unit/tcframe/runner/core/ArgsParserTests.cpp
Expand Down
8 changes: 0 additions & 8 deletions include/tcframe/generator.hpp

This file was deleted.

1 change: 1 addition & 0 deletions include/tcframe/runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

#include "tcframe/runner/aggregator.hpp"
#include "tcframe/runner/core.hpp"
#include "tcframe/runner/generator.hpp"
#include "tcframe/runner/logger.hpp"
2 changes: 1 addition & 1 deletion include/tcframe/runner/core/Runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#include "ArgsParser.hpp"
#include "SlugParser.hpp"
#include "tcframe/evaluator.hpp"
#include "tcframe/generator.hpp"
#include "tcframe/grader.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/logger.hpp"
#include "tcframe/runner/aggregator.hpp"
#include "tcframe/runner/generator.hpp"
#include "tcframe/spec.hpp"
#include "tcframe/util.hpp"

Expand Down
8 changes: 8 additions & 0 deletions include/tcframe/runner/generator.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#pragma once

#include "tcframe/runner/generator/DefaultGeneratorLogger.hpp"
#include "tcframe/runner/generator/GenerationException.hpp"
#include "tcframe/runner/generator/GenerationOptions.hpp"
#include "tcframe/runner/generator/Generator.hpp"
#include "tcframe/runner/generator/GeneratorLogger.hpp"
#include "tcframe/runner/generator/TestCaseGenerator.hpp"
File renamed without changes.
2 changes: 1 addition & 1 deletion test/unit/tcframe/runner/core/BaseRunnerTests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

#include "../../evaluator/MockEvaluator.hpp"
#include "../../evaluator/MockEvaluatorRegistry.hpp"
#include "../../generator/MockGenerator.hpp"
#include "../../grader/MockGrader.hpp"
#include "../../grader/MockGraderLogger.hpp"
#include "../../grader/MockGraderLoggerFactory.hpp"
#include "../../os/MockOperatingSystem.hpp"
#include "../../runner/aggregator/MockAggregator.hpp"
#include "../../runner/aggregator/MockAggregatorRegistry.hpp"
#include "../../runner/generator/MockGenerator.hpp"
#include "../logger/MockRunnerLogger.hpp"
#include "tcframe/runner/core/Runner.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "gmock/gmock.h"
#include "../mock.hpp"
#include "../../mock.hpp"

#include "../logger/MockLoggerEngine.hpp"
#include "tcframe/generator/DefaultGeneratorLogger.hpp"
#include "../../logger/MockLoggerEngine.hpp"
#include "tcframe/runner/generator/DefaultGeneratorLogger.hpp"

using ::testing::_;
using ::testing::InSequence;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "gmock/gmock.h"
#include "../mock.hpp"
#include "../../mock.hpp"

#include "../os/MockOperatingSystem.hpp"
#include "../spec/core/MockSeedSetter.hpp"
#include "../spec/verifier/MockVerifier.hpp"
#include "../util/TestUtils.hpp"
#include "../../os/MockOperatingSystem.hpp"
#include "../../spec/core/MockSeedSetter.hpp"
#include "../../spec/verifier/MockVerifier.hpp"
#include "../../util/TestUtils.hpp"
#include "MockGeneratorLogger.hpp"
#include "MockTestCaseGenerator.hpp"
#include "tcframe/generator/Generator.hpp"
#include "tcframe/runner/generator/Generator.hpp"

using ::testing::_;
using ::testing::Eq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "gmock/gmock.h"

#include "tcframe/generator/Generator.hpp"
#include "tcframe/runner/generator/Generator.hpp"

namespace tcframe {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "gmock/gmock.h"

#include "tcframe/generator/GeneratorLogger.hpp"
#include "tcframe/runner/generator/GeneratorLogger.hpp"

namespace tcframe {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "gmock/gmock.h"

#include "tcframe/generator/TestCaseGenerator.hpp"
#include "tcframe/runner/generator/TestCaseGenerator.hpp"

namespace tcframe {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "gmock/gmock.h"
#include "../mock.hpp"
#include "../../mock.hpp"

#include <sstream>

#include "../evaluator/MockEvaluator.hpp"
#include "../os/MockOperatingSystem.hpp"
#include "../spec/io/MockIOManipulator.hpp"
#include "../spec/verifier/MockVerifier.hpp"
#include "../../evaluator/MockEvaluator.hpp"
#include "../../os/MockOperatingSystem.hpp"
#include "../../spec/io/MockIOManipulator.hpp"
#include "../../spec/verifier/MockVerifier.hpp"
#include "MockGeneratorLogger.hpp"
#include "tcframe/generator/TestCaseGenerator.hpp"
#include "tcframe/runner/generator/TestCaseGenerator.hpp"

using ::testing::_;
using ::testing::AllOf;
Expand Down

0 comments on commit 9e95445

Please sign in to comment.