You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/InlineSnapshotTesting/AssertInline.swift
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -23,16 +23,17 @@ import SwiftSyntaxBuilder
23
23
/// - serialization: The strategy used to serialize the snapshot data. Defaults to `DataSerialization()`.
24
24
/// - closureDescriptor: An optional descriptor describing the inline snapshot’s location. Typically not needed unless implementing custom helpers.
25
25
/// - expected: An optional closure that returns a previously generated snapshot value. When omitted, the expected value will be populated inline at the call site.
26
+
/// - isolation: Optionally specify an actor for input evaluation, supporting thread/actor isolation. Defaults to current context.
26
27
/// - fileID: The file ID in which the assertion was called. Defaults to the file ID of the test case.
27
-
/// - file: The file path in which the assertion was called. Defaults to the file path of the test case.
28
+
/// - filePath: The file path in which the assertion was called. Defaults to the file path of the test case.
28
29
/// - function: The function name in which the assertion was called. Defaults to the test method name.
29
30
/// - line: The line number on which the assertion was called. Defaults to the line number of the call site.
30
31
/// - column: The column on which the assertion was called. Defaults to the column number of the call site.
31
32
/// - Throws: Rethrows any error thrown by the value provider or snapshot strategy.
32
33
/// - Important: When using the Swift Testing framework, you must explicitly set the @Suite(.finalizeSnapshots) trait to ensure inline snapshots are written correctly.
@@ -108,7 +110,7 @@ public func assertInline<Input: Sendable, Output: BytesRepresentable>(
108
110
/// - closureDescriptor: An optional descriptor for the inline snapshot’s location. Typically not needed unless implementing custom helpers.
109
111
/// - expected: An optional closure that returns a previously generated snapshot value. When omitted, the expected value will be populated inline at the call site.
110
112
/// - fileID: The file ID in which the assertion was called. Defaults to the file ID of the test case.
111
-
/// - file: The file path in which the assertion was called. Defaults to the file path of the test case.
113
+
/// - filePath: The file path in which the assertion was called. Defaults to the file path of the test case.
112
114
/// - function: The function name in which the assertion was called. Defaults to the test method name.
113
115
/// - line: The line number on which the assertion was called. Defaults to the line number of the call site.
114
116
/// - column: The column on which the assertion was called. Defaults to the column number of the call site.
0 commit comments