@@ -105,7 +105,7 @@ TEST(XmlRecorderTest, RegisterVectorVertexTypeTest)
105105 // Create an instance of XmlRecorder
106106 XmlRecorder recorder;
107107
108- // Create a RecordableVector<vertexType>
108+ // Create a RecordableVector<vertexType>
109109 RecordableVector<vertexType> vertTypes;
110110 vertTypes.resize (2 );
111111 vertTypes[0 ] = vertexType::EXC;
@@ -170,7 +170,8 @@ TEST(XmlRecorderTest, CompileHistoriesTest)
170170
171171 // Call the compileHistories method
172172 recorderTest_->compileHistories ();
173- vector<std::variant<uint64_t , bool , int , BGFLOAT, vertexType>> history = recorderTest_->getHistory (0 );
173+ vector<std::variant<uint64_t , bool , int , BGFLOAT, vertexType>> history
174+ = recorderTest_->getHistory (0 );
174175
175176 // Verify the events compiled hisotry
176177 uint64_t data = 1 ;
@@ -198,7 +199,9 @@ TEST(XmlRecorderTest, ToXML)
198199 // Verify the expected XML output
199200 stringstream os;
200201 os << " <Matrix " ;
201- os << " name=\" " << " TestVar" << " \" " ;
202+ os << " name=\" "
203+ << " TestVar"
204+ << " \" " ;
202205 os << " type=\" complete\" rows=\" " << 1 << " \" columns=\" " << variableHistory.size ()
203206 << " \" multiplier=\" 1.0\" >" << endl;
204207 os << " " ;
@@ -261,19 +264,19 @@ TEST(XmlRecorderTest, SaveSimDataVertexTypeTest)
261264{
262265 std::string outputFile = " ../Testing/UnitTesting/TestOutput/test_vertex_type.xml" ;
263266 unique_ptr<XmlRecorder> recorderTest_ (new XmlRecorder (outputFile));
264-
265- // Create a recordable vector
267+
268+ // Create a recordable vector
266269 RecordableVector<vertexType> vertTypes;
267270 vertTypes.resize (2 );
268- vertTypes[0 ] = vertexType::EXC;
269- vertTypes[1 ] = vertexType::INH;
271+ vertTypes[0 ] = vertexType::EXC;
272+ vertTypes[1 ] = vertexType::INH;
270273
271274 // Register the RecordableVector of VertexTypes
272275 recorderTest_->registerVariable (" VertexTypes" , vertTypes, Recorder::UpdatedType::DYNAMIC);
273276
274277 // initialize the XmlRecorder object
275278 recorderTest_->init ();
276-
279+
277280 // Call the compileHistories method
278281 recorderTest_->compileHistories ();
279282 // Call the saveSimData() function
@@ -284,15 +287,16 @@ TEST(XmlRecorderTest, SaveSimDataVertexTypeTest)
284287 std::stringstream outputBuffer;
285288 outputBuffer << inputFile.rdbuf ();
286289 inputFile.close ();
287-
290+
288291 // checks for saving simulation data
289292 vector<std::variant<uint64_t , bool , int , BGFLOAT, vertexType>> mock_history
290293 = {vertexType::EXC, vertexType::INH};
291294
292295 std::string expect_header = " <?xml version=\" 1.0\" standalone=\" no\" ?>\n " ;
293296 std::string expect_end = " \n " ;
294297 std::string expectXML
295- = expect_header + recorderTest_->getToXML (" VertexTypes" , mock_history, typeid (vertexType).name ())
298+ = expect_header
299+ + recorderTest_->getToXML (" VertexTypes" , mock_history, typeid (vertexType).name ())
296300 + expect_end;
297301 // Vertify the output string
298302 ASSERT_EQ (outputBuffer.str (), expectXML);
0 commit comments