From a35257b7e9ce44e92636447003a8eeefb77b145c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galen=20O=E2=80=99Hanlon?= Date: Fri, 12 Jul 2024 13:13:04 -0700 Subject: [PATCH] Thread fileID through to all assertInlineSnapshot calls (#26) This issue and fix should only affect the new Swift Testing framework. --- Sources/MacroTesting/AssertMacro.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/MacroTesting/AssertMacro.swift b/Sources/MacroTesting/AssertMacro.swift index f8cf2b3..f02ba10 100644 --- a/Sources/MacroTesting/AssertMacro.swift +++ b/Sources/MacroTesting/AssertMacro.swift @@ -236,6 +236,7 @@ public func assertMacro( trailingClosureOffset: offset ), matches: diagnosedSource, + fileID: fileID, file: filePath, function: function, line: line, @@ -256,6 +257,7 @@ public func assertMacro( trailingClosureOffset: offset ), matches: diagnosedSource, + fileID: fileID, file: filePath, function: function, line: line, @@ -297,6 +299,7 @@ public func assertMacro( trailingClosureOffset: offset ), matches: fixedSource, + fileID: fileID, file: filePath, function: function, line: line, @@ -335,6 +338,7 @@ public func assertMacro( trailingClosureOffset: offset ), matches: fixedSource, + fileID: fileID, file: filePath, function: function, line: line, @@ -357,6 +361,7 @@ public func assertMacro( trailingClosureOffset: offset ), matches: expandedSource, + fileID: fileID, file: filePath, function: function, line: line, @@ -377,6 +382,7 @@ public func assertMacro( trailingClosureOffset: offset ), matches: expandedSource, + fileID: fileID, file: filePath, function: function, line: line,