Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/num42/swift-macrotester.git", from: "1.0.3"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "601.0.1")
.package(url: "https://github.com/num42/swift-macrotester.git", from: "2.1.0"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "602.0.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import MacroTester
import MemberwiseInitializerMacros
import SwiftSyntaxMacros
import SwiftSyntaxMacrosTestSupport
import XCTest
import Testing

let testMacros: [String: Macro.Type] = [
"MemberwiseInitializer": MemberwiseInitializerMacro.self
]

final class MemberwiseInitializerTests: XCTestCase {
func testMemberwiseInitializer() throws {
testMacro(macros: testMacros)
@Suite struct MemberwiseInitializerTests {
@Test func memberwiseInitializer() {
MacroTester.testMacro(macros: testMacros)
}

func testMemberwiseInitializerWithConstant() throws {
testMacro(macros: testMacros)
@Test func memberwiseInitializerWithConstant() {
MacroTester.testMacro(macros: testMacros)
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function calls have inconsistent indentation. They should align with the standard 2-space indentation used elsewhere in the file instead of 6 spaces.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function calls have inconsistent indentation. They should align with the standard 2-space indentation used elsewhere in the file instead of 6 spaces.

Suggested change
MacroTester.testMacro(macros: testMacros)
MacroTester.testMacro(macros: testMacros)

Copilot uses AI. Check for mistakes.
}
}