-
Notifications
You must be signed in to change notification settings - Fork 4
Moved .forTesting() functions to new importable LambdaRuntimeTestUtils target #20
Changes from 4 commits
85ff205
0ca333c
b41f373
0489bf4
6348a64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import NIO | ||
import NIOHTTP1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Of course! Done. |
||
@testable import LambdaRuntime | ||
|
||
extension Environment { | ||
|
||
static func forTesting( | ||
public static func forTesting( | ||
lambdaRuntimeAPI: String? = nil, | ||
handler : String? = nil, | ||
functionName : String? = nil, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import Foundation | ||
import NIO | ||
import NIOHTTP1 | ||
@testable import LambdaRuntime | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks!!! |
||
extension Invocation { | ||
|
||
static func forTesting( | ||
public static func forTesting( | ||
requestId : String = UUID().uuidString.lowercased(), | ||
timeout : TimeInterval = 1, | ||
functionArn: String = "arn:aws:lambda:us-east-1:123456789012:function:custom-runtime", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import Foundation | ||
import XCTest | ||
import NIO | ||
import LambdaRuntimeTestUtils | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. put below (3 times)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏻 |
||
@testable import LambdaRuntime | ||
|
||
class ContextTests: XCTestCase { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code beauty:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair!