-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move JsonReader to Study updater where it's used
- Loading branch information
1 parent
0a314fb
commit e1557e7
Showing
10 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/cpp/helpers/JsonXpansionReader.cpp → src/cpp/study-updater/JsonXpansionReader.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "antares-xpansion/helpers/JsonXpansionReader.h" | ||
#include "JsonXpansionReader.h" | ||
|
||
#include <json/json.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
add_executable(study_updater_test) | ||
target_sources(study_updater_test PRIVATE | ||
JsonXpansionReaderTest.cc | ||
) | ||
|
||
# Get source dir to include private headers | ||
# Better way would be to rework test and use StudyUpdater::update as entry point | ||
get_target_property(STUDY_UPDATER_SOURCE_DIR ${PROJECT_NAME}::xpansion_study_updater_lib SOURCE_DIR) | ||
|
||
target_include_directories(study_updater_test | ||
PRIVATE | ||
${STUDY_UPDATER_SOURCE_DIR}/private # for private headers | ||
) | ||
|
||
target_link_libraries(study_updater_test | ||
PRIVATE | ||
${PROJECT_NAME}::xpansion_study_updater_lib | ||
${JSONCPP_LIB} | ||
GTest::Main | ||
) | ||
add_test(NAME study_updater_test COMMAND study_updater_test WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}) | ||
set_property(TEST study_updater_test PROPERTY LABELS unit) |
2 changes: 1 addition & 1 deletion
2
tests/cpp/helpers/JsonXpansionReaderTest.cc → ...p/study_updater/JsonXpansionReaderTest.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters