@@ -433,7 +433,7 @@ func TestDeepCopy(t *testing.T) {
433433 require .NoError (t , err )
434434 }
435435
436- copied := deepCopy (original )
436+ copied := DeepCopy (original )
437437 require .Equal (t , original , copied )
438438
439439 // modify the original and ensure the copy is not affected
@@ -442,7 +442,7 @@ func TestDeepCopy(t *testing.T) {
442442}
443443
444444// TestDirectReferences verifies that the exported methods return direct references
445- // to internal data for performance reasons, and demonstrates how to use deepCopy
445+ // to internal data for performance reasons, and demonstrates how to use DeepCopy
446446// when modification is needed.
447447func TestDirectReferences (t * testing.T ) {
448448 codec := NewLeoRSCodec ()
@@ -459,8 +459,8 @@ func TestDirectReferences(t *testing.T) {
459459 // Should be the same underlying slice (direct reference)
460460 require .True (t , & row1 [0 ] == & row2 [0 ], "Row() should return direct references" )
461461
462- // If caller needs to modify, they should use deepCopy
463- rowCopy := deepCopy (row1 )
462+ // If caller needs to modify, they should use DeepCopy
463+ rowCopy := DeepCopy (row1 )
464464 rowCopy [0 ][0 ]++ // safe to modify
465465
466466 // Original should be unchanged
@@ -474,8 +474,8 @@ func TestDirectReferences(t *testing.T) {
474474 // Should be the same underlying slice (direct reference)
475475 require .True (t , & col1 [0 ] == & col2 [0 ], "Col() should return direct references" )
476476
477- // If caller needs to modify, they should use deepCopy
478- colCopy := deepCopy (col1 )
477+ // If caller needs to modify, they should use DeepCopy
478+ colCopy := DeepCopy (col1 )
479479 colCopy [0 ][0 ]++ // safe to modify
480480
481481 // Original should be unchanged
@@ -491,8 +491,8 @@ func TestDirectReferences(t *testing.T) {
491491 // Should be the same underlying slice (direct reference)
492492 require .True (t , & roots1 [0 ] == & roots2 [0 ], "RowRoots() should return direct references" )
493493
494- // If caller needs to modify, they should use deepCopy
495- rootsCopy := deepCopy (roots1 )
494+ // If caller needs to modify, they should use DeepCopy
495+ rootsCopy := DeepCopy (roots1 )
496496 rootsCopy [0 ][0 ]++ // safe to modify
497497
498498 // Original should be unchanged
@@ -508,8 +508,8 @@ func TestDirectReferences(t *testing.T) {
508508 // Should be the same underlying slice (direct reference)
509509 require .True (t , & roots1 [0 ] == & roots2 [0 ], "ColRoots() should return direct references" )
510510
511- // If caller needs to modify, they should use deepCopy
512- rootsCopy := deepCopy (roots1 )
511+ // If caller needs to modify, they should use DeepCopy
512+ rootsCopy := DeepCopy (roots1 )
513513 rootsCopy [0 ][0 ]++ // safe to modify
514514
515515 // Original should be unchanged
@@ -526,8 +526,8 @@ func TestDirectReferences(t *testing.T) {
526526 // But the underlying byte slices should be the same (shared data)
527527 require .True (t , & flat1 [0 ][0 ] == & flat2 [0 ][0 ], "Flattened() should share underlying byte slices" )
528528
529- // If caller needs to modify, they should use deepCopy
530- flatCopy := deepCopy (flat1 )
529+ // If caller needs to modify, they should use DeepCopy
530+ flatCopy := DeepCopy (flat1 )
531531 flatCopy [0 ][0 ]++ // safe to modify
532532
533533 // Original should be unchanged
0 commit comments