Skip to content

Commit

Permalink
Refactor runner: Move verifier package to spec/
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jul 19, 2017
1 parent 23c7e77 commit 48f028f
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 20 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ set(INCLUDE
include/tcframe/spec/variable/Variable.hpp
include/tcframe/spec/variable/Vector.hpp
include/tcframe/spec/variable/WhitespaceManipulator.hpp
include/tcframe/spec/verifier.hpp
include/tcframe/spec/verifier/ConstraintsVerificationResult.hpp
include/tcframe/spec/verifier/MultipleTestCasesConstraintsVerificationResult.hpp
include/tcframe/spec/verifier/Verifier.hpp
include/tcframe/util.hpp
include/tcframe/util/NotImplementedException.hpp
include/tcframe/util/StringUtils.hpp
Expand All @@ -148,10 +152,6 @@ set(INCLUDE
include/tcframe/verdict/Verdict.hpp
include/tcframe/verdict/VerdictCreator.hpp
include/tcframe/verdict/VerdictStatus.hpp
include/tcframe/verifier.hpp
include/tcframe/verifier/ConstraintsVerificationResult.hpp
include/tcframe/verifier/MultipleTestCasesConstraintsVerificationResult.hpp
include/tcframe/verifier/Verifier.hpp
)

set(TEST_UNIT
Expand Down Expand Up @@ -224,14 +224,14 @@ set(TEST_UNIT
test/unit/tcframe/spec/variable/VariableTests.cpp
test/unit/tcframe/spec/variable/VectorTests.cpp
test/unit/tcframe/spec/variable/WhitespaceManipulatorTests.cpp
test/unit/tcframe/spec/verifier/MockVerifier.hpp
test/unit/tcframe/spec/verifier/VerifierTests.cpp
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
test/unit/tcframe/verifier/MockVerifier.hpp
test/unit/tcframe/verifier/VerifierTests.cpp
)

add_executable(test_unit ${INCLUDE} ${TEST_UNIT})
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/generator/DefaultGeneratorLogger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "GeneratorLogger.hpp"
#include "tcframe/logger.hpp"
#include "tcframe/spec/constraint.hpp"
#include "tcframe/spec/verifier.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verifier.hpp"

using std::string;
using std::vector;
Expand Down
1 change: 0 additions & 1 deletion include/tcframe/generator/Generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "TestCaseGenerator.hpp"
#include "tcframe/os.hpp"
#include "tcframe/spec/core.hpp"
#include "tcframe/verifier.hpp"

using std::function;
using std::istringstream;
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/generator/GeneratorLogger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "tcframe/logger.hpp"
#include "tcframe/spec/constraint.hpp"
#include "tcframe/spec/verifier.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verifier.hpp"

using std::string;

Expand Down
1 change: 0 additions & 1 deletion include/tcframe/generator/TestCaseGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "tcframe/os.hpp"
#include "tcframe/spec.hpp"
#include "tcframe/verdict.hpp"
#include "tcframe/verifier.hpp"

using std::char_traits;
using std::endl;
Expand Down
1 change: 0 additions & 1 deletion include/tcframe/runner/Runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "tcframe/os.hpp"
#include "tcframe/spec.hpp"
#include "tcframe/util.hpp"
#include "tcframe/verifier.hpp"

using std::cout;
using std::endl;
Expand Down
1 change: 1 addition & 0 deletions include/tcframe/spec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
#include "tcframe/spec/random.hpp"
#include "tcframe/spec/testcase.hpp"
#include "tcframe/spec/variable.hpp"
#include "tcframe/spec/verifier.hpp"

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

#include "tcframe/spec/verifier/ConstraintsVerificationResult.hpp"
#include "tcframe/spec/verifier/MultipleTestCasesConstraintsVerificationResult.hpp"
#include "tcframe/spec/verifier/Verifier.hpp"
File renamed without changes.
5 changes: 0 additions & 5 deletions include/tcframe/verifier.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion test/unit/tcframe/generator/GeneratorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "../io_manipulator/MockIOManipulator.hpp"
#include "../os/MockOperatingSystem.hpp"
#include "../spec/core/MockSeedSetter.hpp"
#include "../spec/verifier/MockVerifier.hpp"
#include "../util/TestUtils.hpp"
#include "../verifier/MockVerifier.hpp"
#include "MockGeneratorLogger.hpp"
#include "MockTestCaseGenerator.hpp"
#include "tcframe/generator/Generator.hpp"
Expand Down
2 changes: 1 addition & 1 deletion test/unit/tcframe/generator/TestCaseGeneratorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "../evaluator/MockEvaluator.hpp"
#include "../io_manipulator/MockIOManipulator.hpp"
#include "../os/MockOperatingSystem.hpp"
#include "../verifier/MockVerifier.hpp"
#include "../spec/verifier/MockVerifier.hpp"
#include "MockGeneratorLogger.hpp"
#include "tcframe/generator/TestCaseGenerator.hpp"

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

#include "gmock/gmock.h"

#include "tcframe/verifier/Verifier.hpp"
#include "tcframe/spec/verifier/Verifier.hpp"

namespace tcframe {

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

#include "tcframe/verifier/Verifier.hpp"
#include "tcframe/spec/verifier/Verifier.hpp"

using ::testing::ElementsAre;
using ::testing::IsEmpty;
Expand Down

0 comments on commit 48f028f

Please sign in to comment.