Files
ccn/Packages/Infrastructure/Tests/Utils/Contexts/StubRequestContext.swift
T

23 lines
543 B
Swift
Raw Normal View History

2026-08-19 22:55:00 +02:00
import Hummingbird
import Infrastructure
2026-09-20 12:45:58 +02:00
/// A request context carrying the core storage and nothing else.
struct StubRequestContext: RequestContext {
2026-08-19 22:55:00 +02:00
// MARK: Properties
/// The core request context storage Hummingbird requires.
var coreContext: CoreRequestContextStorage
// MARK: Initializers
/// Creates a request context for the given source.
/// - Parameter source: the source the context is initialized from.
init(
source: Source
) {
self.coreContext = .init(source: source)
}
}