🍦 SwiftServe Get

Menu / network.request-mocking

Can Swift packages do request stubbing / mocking?

also known as: network mocking · stub requests

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
apnswift full menu as of 6.6.0
Details

serves it · confidence 0.80 · as of 6.6.0

serves it · confidence 0.85 · as of 6.6.0

serves it · confidence 0.70 · as of 6.6.0

  • APNSTestServer
    Sources/APNSTestServer/APNSTestServer.swift:48
    View the line on GitHub →
    Decl unconditional and present per surface; running a NIO-based listening server on watchOS is unlikely to be exercised in practice.
  • Package.swift:6
    View the line on GitHub →
    Manifest declares .watchOS(.v9) floor.

serves it · confidence 0.80 · as of 6.6.0

serves it · confidence 0.70 · as of 6.6.0

serves it · confidence 0.85 · as of 6.6.0

serves it · confidence 0.70 · as of 6.6.0

  • APNSTestServer
    Sources/APNSTestServer/APNSTestServer.swift:48
    View the line on GitHub →
    Unconditional decl, no macCatalyst gap in surface; no explicit Catalyst handling in the package.
  • APNSTestServer.start
    Sources/APNSTestServer/APNSTestServer.swift:102
    View the line on GitHub →
apollo-ios as of 2.2.0
Details

serves it · confidence 0.70 · as of 2.2.0

serves it · confidence 0.70 · as of 2.2.0

serves it · confidence 0.70 · as of 2.2.0

serves it · confidence 0.70 · as of 2.2.0

serves it · confidence 0.70 · as of 2.2.0

?

not verified yet · confidence 0.30 · as of 2.2.0

  • Package.swift:7
    View the line on GitHub →
    platforms: [.iOS(.v15), .macOS(.v12), .tvOS(.v15), .watchOS(.v8), .visionOS(.v1)]
  • README platform badge lists iOS 15+ | macOS 12+ | tvOS 15+ | watchOS 8+ | visionOS 1+; Linux is not mentioned

serves it · confidence 0.60 · as of 2.2.0

  • Mock
    Sources/ApolloTestSupport/TestMock.swift:6
    View the line on GitHub →
    Surface digest resolves this decl present on macCatalyst (no platform gap, no #if conditions anywhere in the surface); Package.swift declares no explicit macCatalyst floor (inherits iOS).
  • MockObject
    Sources/ApolloTestSupport/TestMock.swift:153
    View the line on GitHub →
  • AnyMock
    Sources/ApolloTestSupport/TestMock.swift:149
    View the line on GitHub →
Moya as of 15.0.3
Details

serves it · confidence 0.85 · as of 15.0.3

serves it · confidence 0.85 · as of 15.0.3

serves it · confidence 0.80 · as of 15.0.3

serves it · confidence 0.80 · as of 15.0.3

not served here · confidence 0.85 · as of 15.0.3

  • does not compile for visionOS (Xcode 26.6 (17F113), XROS26.5.sdk): .dd/SourcePackages/checkouts/Alamofire/Source/Protected.swift:127:15: error: cannot find 'lock' in scope — the same commit builds for iOS, so the fence is real
?

not verified yet · confidence 0.20 · as of 15.0.3

  • rides on Alamofire

serves it · confidence 0.75 · as of 15.0.3

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it