@@ -130,7 +130,7 @@ func TestSortPackagesByDependencyDepth(t *testing.T) {
130130 rootNames := []string {sorted [0 ].FullName (), sorted [1 ].FullName ()}
131131 require .Contains (t , rootNames , "tree1-root" )
132132 require .Contains (t , rootNames , "tree2-root" )
133-
133+
134134 leafNames := []string {sorted [2 ].FullName (), sorted [3 ].FullName ()}
135135 require .Contains (t , leafNames , "tree1-leaf" )
136136 require .Contains (t , leafNames , "tree2-leaf" )
@@ -254,7 +254,7 @@ func TestSortPackagesByDependencyDepth_Performance(t *testing.T) {
254254 // Should complete quickly even with 100 packages
255255 sorted := sortPackagesByDependencyDepth (packages )
256256 require .Equal (t , 100 , len (sorted ))
257-
257+
258258 // Deepest package (pkg99) should be first
259259 require .Equal (t , "pkg" + string (rune (99 )), sorted [0 ].FullName ())
260260 // Shallowest (leaf, pkg0) should be last
@@ -264,7 +264,7 @@ func TestSortPackagesByDependencyDepth_Performance(t *testing.T) {
264264// BenchmarkSortPackagesByDependencyDepth benchmarks the sorting algorithm
265265func BenchmarkSortPackagesByDependencyDepth (b * testing.B ) {
266266 sizes := []int {10 , 50 , 100 , 200 }
267-
267+
268268 for _ , size := range sizes {
269269 b .Run (fmt .Sprintf ("%d-packages" , size ), func (b * testing.B ) {
270270 // Create a chain of packages (worst case for depth calculation)
@@ -279,7 +279,7 @@ func BenchmarkSortPackagesByDependencyDepth(b *testing.B) {
279279 }
280280 packages [i ] = pkg
281281 }
282-
282+
283283 b .ResetTimer ()
284284 for i := 0 ; i < b .N ; i ++ {
285285 _ = sortPackagesByDependencyDepth (packages )
@@ -291,7 +291,7 @@ func BenchmarkSortPackagesByDependencyDepth(b *testing.B) {
291291// BenchmarkCalculateDependencyDepth benchmarks depth calculation
292292func BenchmarkCalculateDependencyDepth (b * testing.B ) {
293293 depths := []int {5 , 10 , 20 , 50 }
294-
294+
295295 for _ , depth := range depths {
296296 b .Run (fmt .Sprintf ("depth-%d" , depth ), func (b * testing.B ) {
297297 // Create a linear chain of given depth
@@ -306,7 +306,7 @@ func BenchmarkCalculateDependencyDepth(b *testing.B) {
306306 }
307307 pkg = newPkg
308308 }
309-
309+
310310 b .ResetTimer ()
311311 for i := 0 ; i < b .N ; i ++ {
312312 cache := make (map [string ]int )
0 commit comments