@@ -192,15 +192,15 @@ public void testGenerateMAPQSubMaps() throws Exception {
192192 public void parseIntegerAttribute () {
193193 QCMGAtomicLongArray array = new QCMGAtomicLongArray (100 );
194194 MAPQMatrix matrix = new MAPQMatrix ();
195- BamSummaryReport .parseIntegerAttribute (null , array , true , matrix , MAPQMatrix .MatrixType .ZM );
195+ BamSummaryReport .aggregateIntegerAttribute (null , array , true , matrix , MAPQMatrix .MatrixType .ZM );
196196 assertTrue (array .isEmpty ());
197197 assertEquals (0 , matrix .getMatrixByType (MAPQMatrix .MatrixType .ZM ).size ());
198- BamSummaryReport .parseIntegerAttribute ("hello" , array , true , matrix , MAPQMatrix .MatrixType .ZM );
198+ BamSummaryReport .aggregateIntegerAttribute ("hello" , array , true , matrix , MAPQMatrix .MatrixType .ZM );
199199 assertTrue (array .isEmpty ());
200200 assertEquals (0 , matrix .getMatrixByType (MAPQMatrix .MatrixType .ZM ).size ());
201- BamSummaryReport .parseIntegerAttribute (1 , array , true , matrix , MAPQMatrix .MatrixType .ZM );
201+ BamSummaryReport .aggregateIntegerAttribute (1 , array , true , matrix , MAPQMatrix .MatrixType .ZM );
202202 assertEquals (1 , array .get (1 ));
203- BamSummaryReport .parseIntegerAttribute (10 , array , true , matrix , MAPQMatrix .MatrixType .ZM );
203+ BamSummaryReport .aggregateIntegerAttribute (10 , array , true , matrix , MAPQMatrix .MatrixType .ZM );
204204 assertEquals (1 , array .get (1 ));
205205 assertEquals (1 , array .get (10 ));
206206 assertEquals (2 , matrix .getMatrixByType (MAPQMatrix .MatrixType .ZM ).size ());
@@ -212,24 +212,24 @@ public void parseStringAttributeTest() {
212212 ConcurrentMap <String , AtomicLong > map = new ConcurrentHashMap <>();
213213
214214 // Scenario 1: null attribute, null map
215- BamSummaryReport .parseStringAttribute (null , null );
215+ BamSummaryReport .aggregateStringAttribute (null , null );
216216 assertTrue (map .isEmpty ());
217217 // Scenario 2: null attribute, null map
218- BamSummaryReport .parseStringAttribute (null , map );
218+ BamSummaryReport .aggregateStringAttribute (null , map );
219219 assertTrue (map .isEmpty ());
220220
221221 // Scenario 3: Non-String attribute
222- BamSummaryReport .parseStringAttribute (123 , map );
222+ BamSummaryReport .aggregateStringAttribute (123 , map );
223223 // Since the input parameter was not a string, no modification should have been made to the map
224224 assertEquals (map .size (), 0 );
225225
226226 // Scenario 4: String attribute, null map
227- BamSummaryReport .parseStringAttribute ("testAttribute" , null );
227+ BamSummaryReport .aggregateStringAttribute ("testAttribute" , null );
228228 // Now, the map should contain an entry with key 'testAttribute' with a count of 1
229229 assertEquals (map .size (), 0 );
230230
231231 // Scenario 5: String attribute, null map
232- BamSummaryReport .parseStringAttribute ("testAttribute" , map );
232+ BamSummaryReport .aggregateStringAttribute ("testAttribute" , map );
233233 assertEquals (map .size (), 1 );
234234 }
235235
0 commit comments