Skip to content

Commit

Permalink
Thread fileID through to all assertInlineSnapshot calls (#26)
Browse files Browse the repository at this point in the history
This issue and fix should only affect the new Swift Testing framework.
  • Loading branch information
gohanlon authored Jul 12, 2024
1 parent 174ca40 commit a35257b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/MacroTesting/AssertMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public func assertMacro(
trailingClosureOffset: offset
),
matches: diagnosedSource,
fileID: fileID,
file: filePath,
function: function,
line: line,
Expand All @@ -256,6 +257,7 @@ public func assertMacro(
trailingClosureOffset: offset
),
matches: diagnosedSource,
fileID: fileID,
file: filePath,
function: function,
line: line,
Expand Down Expand Up @@ -297,6 +299,7 @@ public func assertMacro(
trailingClosureOffset: offset
),
matches: fixedSource,
fileID: fileID,
file: filePath,
function: function,
line: line,
Expand Down Expand Up @@ -335,6 +338,7 @@ public func assertMacro(
trailingClosureOffset: offset
),
matches: fixedSource,
fileID: fileID,
file: filePath,
function: function,
line: line,
Expand All @@ -357,6 +361,7 @@ public func assertMacro(
trailingClosureOffset: offset
),
matches: expandedSource,
fileID: fileID,
file: filePath,
function: function,
line: line,
Expand All @@ -377,6 +382,7 @@ public func assertMacro(
trailingClosureOffset: offset
),
matches: expandedSource,
fileID: fileID,
file: filePath,
function: function,
line: line,
Expand Down

0 comments on commit a35257b

Please sign in to comment.