Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ let package = Package(
.package(
url: "https://github.com/swiftlang/swift-syntax",
"600.0.0" ..< "602.0.0"
),
.package(
url: "https://github.com/apple/swift-algorithms",
from: "1.2.0"
)
],
targets: [
Expand All @@ -105,10 +101,6 @@ let package = Package(
.product(
name: "PrincipleConcurrency",
package: "Principle"
),
.product(
name: "Algorithms",
package: "swift-algorithms"
)
]
)
Expand All @@ -122,10 +114,6 @@ let package = Package(
.product(
name: "PrincipleCollections",
package: "Principle"
),
.product(
name: "Algorithms",
package: "swift-algorithms"
)
]
) + macroTargets(
Expand Down
3 changes: 1 addition & 2 deletions Sources/Probing/Errors/ProbingErrors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Copyright © 2025 Kamil Strzelecki. All rights reserved.
//

import Algorithms
import PrincipleCollections

internal enum ProbingErrors {}
Expand Down Expand Up @@ -216,7 +215,7 @@ extension ProbingErrors {
apiMisuseDescription(
subsystem: "probe",
attempt: "install probe",
backtraces: [backtrace, preexisting].compacted()
backtraces: [backtrace, preexisting].lazy.compactMap(\.self)
)
}
}
Expand Down
18 changes: 18 additions & 0 deletions Tests/ProbeTestingTests/Helpers/Array+Product.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Array+Product.swift
// Probing
//
// Created by Kamil Strzelecki on 16/05/2025.
// Copyright © 2025 Kamil Strzelecki. All rights reserved.
//

internal func product<A, B>(
_ first: some Sequence<A>,
_ second: some Sequence<B>
) -> [(A, B)] {
first.flatMap { first in
second.lazy.map { second in
(first, second)
}
}
}
1 change: 0 additions & 1 deletion Tests/ProbeTestingTests/Suites/EffectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@testable import ProbeTesting
@testable import Probing
import Algorithms
import Testing

internal class EffectTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@testable import ProbeTesting
@testable import Probing
import Algorithms
import Testing

internal final class IndependentEffectsTests: EffectTests {
Expand Down
3 changes: 1 addition & 2 deletions Tests/ProbeTestingTests/Suites/NestedEffectsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@testable import ProbeTesting
@testable import Probing
import Algorithms
import Testing

internal final class NestedEffectsTests: EffectTests {
Expand Down Expand Up @@ -94,7 +93,7 @@ internal final class NestedEffectsTests: EffectTests {
}

@Test(
arguments: Array(product(1 ..< 3, 1 ..< 3)),
arguments: product(1 ..< 3, 1 ..< 3),
1 ..< 3
)
func testRunningToProbe(
Expand Down
1 change: 0 additions & 1 deletion Tests/ProbeTestingTests/Suites/ProbingOptionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@testable import ProbeTesting
@testable import Probing
import Algorithms
import PrincipleConcurrency
import Testing

Expand Down
Loading