Fix SwiftLint identifier name violation

- Change 'i' to 'index' in ListCommandTests to meet SwiftLint requirements
This commit is contained in:
Peter Steinberger 2025-05-25 19:14:13 +02:00
parent 8894154be6
commit 6b3d887547

View file

@ -229,12 +229,12 @@ final class ListCommandTests: XCTestCase {
func testApplicationInfoEncodingPerformance() throws { func testApplicationInfoEncodingPerformance() throws {
// Test performance of encoding many applications // Test performance of encoding many applications
let apps = (0..<100).map { i in let apps = (0..<100).map { index in
ApplicationInfo( ApplicationInfo(
name: "App\(i)", name: "App\(index)",
bundleIdentifier: "com.example.app\(i)", bundleIdentifier: "com.example.app\(index)",
processIdentifier: pid_t(1000 + i), processIdentifier: pid_t(1000 + index),
isActive: i == 0 isActive: index == 0
) )
} }