File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 16
16
namespace Paths {
17
17
extern fs::path logPath;
18
18
const std::string MAKEFILE_EXTENSION = " .mk" ;
19
+ const std::string CXX_EXTENSION = " .cpp" ;
19
20
const std::string TEST_SUFFIX = " _test" ;
20
21
const std::string STUB_SUFFIX = " _stub" ;
21
22
const std::string DOT_SEP = " _dot_" ;
Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ void KTestObjectParser::assignTypeUnnamedVar(
658
658
continue ;
659
659
}
660
660
if (!visited[indObj]) {
661
- Tests::MethodParam param = {fieldType.baseTypeObj (1 ), " " , std::nullopt };
661
+ Tests::MethodParam param = {fieldType.baseTypeObj (1 ), " " , std::nullopt};
662
662
order.emplace (indObj, param, curType.paramValue );
663
663
visited[indObj] = true ;
664
664
}
Original file line number Diff line number Diff line change @@ -90,10 +90,11 @@ std::vector<UnitTest> TestRunner::getTestsToLaunch() {
90
90
return ;
91
91
}
92
92
const auto &testFilePath = directoryEntry.path ();
93
- if (testFilePath.extension () == " .cpp" && StringUtils::endsWith (testFilePath.stem ().c_str (), Paths::TEST_SUFFIX)) {
93
+ if (testFilePath.extension () == Paths::CXX_EXTENSION &&
94
+ StringUtils::endsWith (testFilePath.stem ().c_str (), Paths::TEST_SUFFIX)) {
94
95
fs::path sourcePath = Paths::testPathToSourcePath (projectContext, testFilePath);
95
96
fs::path makefile =
96
- Paths::getMakefilePathFromSourceFilePath (projectContext, sourcePath);
97
+ Paths::getMakefilePathFromSourceFilePath (projectContext, sourcePath);
97
98
if (fs::exists (makefile)) {
98
99
try {
99
100
auto tests = getTestsFromMakefile (makefile, testFilePath);
You can’t perform that action at this time.
0 commit comments