Skip to content

Commit cac72a6

Browse files
committed
allow to create a LambdaContext for testing
1 parent bb0ebdb commit cac72a6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/AWSLambdaRuntimeCore/LambdaContext.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ public struct LambdaContext: CustomDebugStringConvertible, Sendable {
120120
"\(Self.self)(requestID: \(self.requestID), traceID: \(self.traceID), invokedFunctionARN: \(self.invokedFunctionARN), cognitoIdentity: \(self.cognitoIdentity ?? "nil"), clientContext: \(self.clientContext ?? "nil"), deadline: \(self.deadline))"
121121
}
122122

123-
/// This interface is not part of the public API and must not be used by adopters. This API is not part of semver versioning.
124-
package static func __forTestsOnly(
123+
/// This interface is not part of the public API and must not be used by adopters.
124+
/// It is declared public to allow users to unit test their handler.
125+
/// This API is not part of semver versioning.
126+
public static func __forTestsOnly(
125127
requestID: String,
126128
traceID: String,
127129
invokedFunctionARN: String,

0 commit comments

Comments
 (0)