Skip to content
Draft
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
3 changes: 2 additions & 1 deletion Modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ let package = Package(
"WordPressUI",
"WordPressCore",
.product(name: "WordPressAPI", package: "wordpress-rs"),
.product(name: "Logging", package: "swift-log")
.product(name: "Logging", package: "swift-log"),
.product(name: "Collections", package: "swift-collections")
]
),
.testTarget(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Foundation

/// Test seam over `UploadSourceMaterializer.materialize`. The actor talks
/// to materialization via this protocol so tests can substitute a mock.
protocol MediaSourceMaterializing: Sendable {
func materialize(
source: UploadSource,
into stageProgress: Progress
) async throws -> MaterializedUpload
}

extension UploadSourceMaterializer: MediaSourceMaterializing {}
Loading