Skip to content

Commit a35257b

Browse files
authored
Thread fileID through to all assertInlineSnapshot calls (#26)
This issue and fix should only affect the new Swift Testing framework.
1 parent 174ca40 commit a35257b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/MacroTesting/AssertMacro.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public func assertMacro(
236236
trailingClosureOffset: offset
237237
),
238238
matches: diagnosedSource,
239+
fileID: fileID,
239240
file: filePath,
240241
function: function,
241242
line: line,
@@ -256,6 +257,7 @@ public func assertMacro(
256257
trailingClosureOffset: offset
257258
),
258259
matches: diagnosedSource,
260+
fileID: fileID,
259261
file: filePath,
260262
function: function,
261263
line: line,
@@ -297,6 +299,7 @@ public func assertMacro(
297299
trailingClosureOffset: offset
298300
),
299301
matches: fixedSource,
302+
fileID: fileID,
300303
file: filePath,
301304
function: function,
302305
line: line,
@@ -335,6 +338,7 @@ public func assertMacro(
335338
trailingClosureOffset: offset
336339
),
337340
matches: fixedSource,
341+
fileID: fileID,
338342
file: filePath,
339343
function: function,
340344
line: line,
@@ -357,6 +361,7 @@ public func assertMacro(
357361
trailingClosureOffset: offset
358362
),
359363
matches: expandedSource,
364+
fileID: fileID,
360365
file: filePath,
361366
function: function,
362367
line: line,
@@ -377,6 +382,7 @@ public func assertMacro(
377382
trailingClosureOffset: offset
378383
),
379384
matches: expandedSource,
385+
fileID: fileID,
380386
file: filePath,
381387
function: function,
382388
line: line,

0 commit comments

Comments
 (0)