Skip to content

Commit

Permalink
Refactor runner: Move verdict package to runner/
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jul 26, 2017
1 parent d76baed commit c4c3368
Show file tree
Hide file tree
Showing 31 changed files with 48 additions and 47 deletions.
36 changes: 18 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ set(INCLUDE
include/tcframe/runner/aggregator/AggregatorRegistry.hpp
include/tcframe/runner/aggregator/MinAggregator.hpp
include/tcframe/runner/aggregator/SumAggregator.hpp
include/tcframe/runner/core.hpp
include/tcframe/runner/core/Args.hpp
include/tcframe/runner/core/ArgsParser.hpp
include/tcframe/runner/core/Runner.hpp
include/tcframe/runner/core/SlugParser.hpp
include/tcframe/runner/evaluator.hpp
include/tcframe/runner/evaluator/BatchEvaluator.hpp
include/tcframe/runner/evaluator/EvaluationOptions.hpp
Expand Down Expand Up @@ -92,11 +97,10 @@ set(INCLUDE
include/tcframe/runner/generator/TestCaseGenerator.hpp
include/tcframe/runner/logger.hpp
include/tcframe/runner/logger/RunnerLogger.hpp
include/tcframe/runner/core.hpp
include/tcframe/runner/core/Args.hpp
include/tcframe/runner/core/ArgsParser.hpp
include/tcframe/runner/core/Runner.hpp
include/tcframe/runner/core/SlugParser.hpp
include/tcframe/runner/verdict.hpp
include/tcframe/runner/verdict/Verdict.hpp
include/tcframe/runner/verdict/VerdictCreator.hpp
include/tcframe/runner/verdict/VerdictStatus.hpp
include/tcframe/spec.hpp
include/tcframe/spec/constraint.hpp
include/tcframe/spec/constraint/Constraint.hpp
Expand Down Expand Up @@ -149,10 +153,6 @@ set(INCLUDE
include/tcframe/util/NotImplementedException.hpp
include/tcframe/util/StringUtils.hpp
include/tcframe/util/optional.hpp
include/tcframe/verdict.hpp
include/tcframe/verdict/Verdict.hpp
include/tcframe/verdict/VerdictCreator.hpp
include/tcframe/verdict/VerdictStatus.hpp
)

set(TEST_UNIT
Expand All @@ -166,6 +166,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/core/ArgsParserTests.cpp
test/unit/tcframe/runner/core/BatchRunnerTests.cpp
test/unit/tcframe/runner/core/BaseRunnerTests.hpp
test/unit/tcframe/runner/core/InteractiveRunnerTests.cpp
test/unit/tcframe/runner/core/RunnerTests.cpp
test/unit/tcframe/runner/core/SlugParserTests.cpp
test/unit/tcframe/runner/evaluator/BatchEvaluatorTests.cpp
test/unit/tcframe/runner/evaluator/InteractiveEvaluatorTests.cpp
test/unit/tcframe/runner/evaluator/MockEvaluator.hpp
Expand All @@ -190,12 +196,9 @@ set(TEST_UNIT
test/unit/tcframe/runner/grader/TestCaseGraderTests.cpp
test/unit/tcframe/runner/logger/MockRunnerLogger.hpp
test/unit/tcframe/runner/logger/RunnerLoggerTests.cpp
test/unit/tcframe/runner/core/ArgsParserTests.cpp
test/unit/tcframe/runner/core/BatchRunnerTests.cpp
test/unit/tcframe/runner/core/BaseRunnerTests.hpp
test/unit/tcframe/runner/core/InteractiveRunnerTests.cpp
test/unit/tcframe/runner/core/RunnerTests.cpp
test/unit/tcframe/runner/core/SlugParserTests.cpp
test/unit/tcframe/runner/verdict/MockVerdictCreator.hpp
test/unit/tcframe/runner/verdict/VerdictCreatorTests.cpp
test/unit/tcframe/runner/verdict/VerdictTests.cpp
test/unit/tcframe/spec/constraint/ConstraintSuiteTests.cpp
test/unit/tcframe/spec/constraint/ConstraintSuiteBuilderTests.cpp
test/unit/tcframe/spec/core/BaseTestSpecTests.cpp
Expand Down Expand Up @@ -230,9 +233,6 @@ set(TEST_UNIT
test/unit/tcframe/util/OptionalTests.cpp
test/unit/tcframe/util/StringUtilsTests.cpp
test/unit/tcframe/util/TestUtils.hpp
test/unit/tcframe/verdict/MockVerdictCreator.hpp
test/unit/tcframe/verdict/VerdictCreatorTests.cpp
test/unit/tcframe/verdict/VerdictTests.cpp
)

add_executable(test_unit ${INCLUDE} ${TEST_UNIT})
Expand Down
1 change: 1 addition & 0 deletions include/tcframe/runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
#include "tcframe/runner/generator.hpp"
#include "tcframe/runner/grader.hpp"
#include "tcframe/runner/logger.hpp"
#include "tcframe/runner/verdict.hpp"
2 changes: 1 addition & 1 deletion include/tcframe/runner/aggregator/Aggregator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <vector>

#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::vector;

Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/aggregator/MinAggregator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <vector>

#include "Aggregator.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::max;
using std::min;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/aggregator/SumAggregator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <vector>

#include "Aggregator.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::max;
using std::vector;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/BatchEvaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "GenerationResult.hpp"
#include "scorer.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::map;
using std::string;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/EvaluationResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <tuple>

#include "tcframe/os.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::map;
using std::string;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/EvaluatorRegistry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include "communicator.hpp"
#include "scorer.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/spec.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::map;
using std::string;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/GenerationResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include <tuple>

#include "tcframe/os.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::tie;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <tuple>

#include "tcframe/os.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::tie;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "../EvaluationOptions.hpp"
#include "CommunicationResult.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::runtime_error;
using std::string;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/scorer/CustomScorer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "Scorer.hpp"
#include "ScoringResult.hpp"
#include "tcframe/os.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::istream;
using std::runtime_error;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/scorer/DiffScorer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "Scorer.hpp"
#include "ScoringResult.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::istream;
using std::string;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/evaluator/scorer/ScoringResult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <tuple>

#include "tcframe/os.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::tie;

Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/generator/TestCaseGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#include "GeneratorLogger.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/evaluator.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/spec.hpp"
#include "tcframe/verdict.hpp"

using std::char_traits;
using std::endl;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/grader/BriefGraderLogger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "GraderLogger.hpp"
#include "tcframe/logger.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/runner/verdict.hpp"

using std::map;

Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/grader/DefaultGraderLogger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "GraderLogger.hpp"
#include "tcframe/logger.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::map;

Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/grader/Grader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include "TestCaseGrader.hpp"
#include "tcframe/os.hpp"
#include "tcframe/runner/aggregator.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/spec.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::map;
using std::max;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/grader/GraderLogger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include <map>

#include "tcframe/logger.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::map;

Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/grader/TestCaseGrader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "GradingOptions.hpp"
#include "GraderLogger.hpp"
#include "tcframe/runner/evaluator.hpp"
#include "tcframe/runner/verdict.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verdict.hpp"

using std::string;

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

#include "tcframe/runner/verdict/Verdict.hpp"
#include "tcframe/runner/verdict/VerdictCreator.hpp"
#include "tcframe/runner/verdict/VerdictStatus.hpp"
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions include/tcframe/verdict.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion test/unit/tcframe/runner/evaluator/BatchEvaluatorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <sstream>

#include "../../os/MockOperatingSystem.hpp"
#include "../../verdict/MockVerdictCreator.hpp"
#include "../../runner/verdict/MockVerdictCreator.hpp"
#include "scorer/MockScorer.hpp"
#include "tcframe/runner/evaluator/BatchEvaluator.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <sstream>

#include "../../../os/MockOperatingSystem.hpp"
#include "../../../verdict/MockVerdictCreator.hpp"
#include "../../../runner/verdict/MockVerdictCreator.hpp"
#include "tcframe/runner/evaluator/communicator/Communicator.hpp"

using ::testing::_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <sstream>

#include "../../../os/MockOperatingSystem.hpp"
#include "../../../verdict/MockVerdictCreator.hpp"
#include "../../../runner/verdict/MockVerdictCreator.hpp"
#include "tcframe/runner/evaluator/scorer/CustomScorer.hpp"

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

#include "gmock/gmock.h"

#include "tcframe/verdict/VerdictCreator.hpp"
#include "tcframe/runner/verdict/VerdictCreator.hpp"

namespace tcframe {

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

#include <sstream>

#include "tcframe/verdict/VerdictCreator.hpp"
#include "tcframe/runner/verdict/VerdictCreator.hpp"

using ::testing::Eq;
using ::testing::StrEq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "gmock/gmock.h"

#include "tcframe/verdict/Verdict.hpp"
#include "tcframe/runner/verdict/Verdict.hpp"

using ::testing::Eq;
using ::testing::Test;
Expand Down

0 comments on commit c4c3368

Please sign in to comment.