Skip to content

Commit c2ab834

Browse files
committed
issue-654-change the format
1 parent 6731df3 commit c2ab834

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Simulator/Recorders/Hdf5Recorder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
/// The constructor and destructor
1717
Hdf5Recorder::Hdf5Recorder()
1818
{
19-
// Retrieve the result file name from the ParameterManager
19+
// Retrieve the result file name from the ParameterManager
2020
ParameterManager::getInstance().getStringByXpath(
2121
"//RecorderParams/RecorderFiles/resultFileName/text()", resultFileName_);
2222

23-
// Register the printParameters function with the OperationManager
23+
// Register the printParameters function with the OperationManager
2424
function<void()> printParametersFunc = std::bind(&Hdf5Recorder::printParameters, this);
2525
OperationManager::getInstance().registerOperation(Operations::printParameters,
2626
printParametersFunc);
2727

28-
// Initialize the logger for file operations
28+
// Initialize the logger for file operations
2929
fileLogger_ = log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("file"));
3030

3131
resultOut_ = nullptr;
@@ -73,4 +73,4 @@ void Hdf5Recorder::init()
7373
error.printErrorStack();
7474
return;
7575
}*/
76-
}
76+
}

Testing/UnitTesting/Hdf5RecorderTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Hdf5Recorder.h"
2-
#include "gtest/gtest.h"
32
#include "Recorder.h"
3+
#include "gtest/gtest.h"
44

55
// Test case for initializing the Hdf5Recorder
66
TEST(Hdf5RecorderTest, CreateInstanceSuccess)

Testing/UnitTesting/RecorderFactoryTests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ TEST(RecorderFactory, CreateNonExistentClassReturnsNullPtr)
3737
// This test is only possible if HDF5 compilation is available and enabled
3838
TEST(RecorderFactory, CreateHdf5RecorderInstance)
3939
{
40-
unique_ptr<Recorder> recorder
41-
= Factory<Recorder>::getInstance().createType("Hdf5Recorder");
40+
unique_ptr<Recorder> recorder = Factory<Recorder>::getInstance().createType("Hdf5Recorder");
4241
ASSERT_NE(nullptr, recorder);
4342
ASSERT_NE(nullptr, dynamic_cast<Hdf5Recorder *>(recorder.get()));
4443
}
45-
#endif
44+
#endif

0 commit comments

Comments
 (0)