Skip to content

Commit

Permalink
fix: lint-issues for last test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
devahmedshendy committed Aug 30, 2023
1 parent f0e8e32 commit 2594479
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

enum AssetDownloaderError: EquatableError {
internal enum AssetDownloaderError: EquatableError {
case unreachableDestination
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Foundation
import ContributeWordPress
import Foundation

extension AssetImport {
internal static func makeAssetImportForAttachmentA() throws -> AssetImport {
try .make(
forPost: .attachmentA(),
forPost: .attachmentA(),
sourceURL: try .make(string: "http://leogdion.name")
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ContributeWordPress
import Foundation
import SyndiKit
import ContributeWordPress

extension AssetImport {
internal static func make(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import ContributeWordPress
import Foundation

internal final class AssetDownloaderSpy: Downloader {
internal private(set) var isCalled: Bool = false
Expand All @@ -10,13 +10,14 @@ internal final class AssetDownloaderSpy: Downloader {
self.result = result
}

internal func download(assets: [AssetImport], allowsOverwrites: Bool) throws {
internal func download(assets _: [AssetImport], allowsOverwrites _: Bool) throws {
isCalled = true

switch result {
case .success:
break
case .failure(let failure):

case let .failure(failure):
throw failure
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Foundation
import ContributeWordPress
import Foundation

internal final class AssetImportFactorySpy {
internal private(set) var isCalled: Bool = false

internal func extractAssetImports(
from site: WordPressSite,
using importSettings: ProcessorSettings
from _: WordPressSite,
using _: ProcessorSettings
) -> [AssetImport] {
isCalled = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ContributeWordPress
import Foundation

internal struct AssetDownloaderStub: Downloader {
internal func download(assets: [AssetImport], allowsOverwrites _: Bool) throws {
internal func download(assets _: [AssetImport], allowsOverwrites _: Bool) throws {
// doing nothing
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Foundation
import ContributeWordPress
import Foundation

internal struct AssetImportFactoryStub {
internal func extractAssetImports(
from site: WordPressSite,
using importSettings: ProcessorSettings
from _: WordPressSite,
using _: ProcessorSettings
) -> [AssetImport] {
return []
[]
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// swiftlint:disable file_length
@testable import ContributeWordPress
import XCTest

Expand Down

0 comments on commit 2594479

Please sign in to comment.