Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:58:55 +01:00
parent 4af19165ec
commit 68073add76
12458 changed files with 12350765 additions and 2 deletions

View file

@ -0,0 +1,30 @@
@testable import CoMaps__Debug_
extension LocalMetadataItem {
static func stub(fileName: String,
lastModificationDate: TimeInterval) -> LocalMetadataItem {
let item = LocalMetadataItem(fileName: fileName,
fileUrl: URL(string: "url")!,
lastModificationDate: lastModificationDate)
return item
}
}
extension CloudMetadataItem {
static func stub(fileName: String,
lastModificationDate: TimeInterval,
isDownloaded: Bool = true,
percentDownloaded: NSNumber = 100.0,
hasUnresolvedConflicts: Bool = false) -> CloudMetadataItem {
let item = CloudMetadataItem(fileName: fileName,
fileUrl: URL(string: "url")!,
isDownloaded: isDownloaded,
percentDownloaded: percentDownloaded,
lastModificationDate: lastModificationDate,
downloadingError: nil,
uploadingError: nil,
hasUnresolvedConflicts: hasUnresolvedConflicts)
return item
}
}