mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 22:23:44 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
29 lines
1.1 KiB
Swift
29 lines
1.1 KiB
Swift
@testable import Organic_Maps__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,
|
|
hasUnresolvedConflicts: Bool = false) -> CloudMetadataItem {
|
|
let item = CloudMetadataItem(fileName: fileName,
|
|
fileUrl: URL(string: "url")!,
|
|
isDownloaded: isDownloaded,
|
|
lastModificationDate: lastModificationDate,
|
|
downloadingError: nil,
|
|
uploadingError: nil,
|
|
hasUnresolvedConflicts: hasUnresolvedConflicts)
|
|
return item
|
|
}
|
|
}
|