@@ -31,10 +31,10 @@ import Testing
3131
3232@testable import SyntaxKit
3333
34- struct ExtensionTests {
34+ internal struct ExtensionTests {
3535 // MARK: - Basic Extension Tests
3636
37- @Test func testBasicExtension( ) {
37+ @Test internal func testBasicExtension( ) {
3838 let extensionDecl = Extension ( " String " ) {
3939 Variable ( . let, name: " test " , type: " Int " , equals: " 42 " )
4040 }
@@ -45,7 +45,7 @@ struct ExtensionTests {
4545 #expect( generated. contains ( " let test: Int = 42 " ) )
4646 }
4747
48- @Test func testExtensionWithMultipleMembers( ) {
48+ @Test internal func testExtensionWithMultipleMembers( ) {
4949 let extensionDecl = Extension ( " Array " ) {
5050 Variable ( . let, name: " isEmpty " , type: " Bool " , equals: " true " )
5151 Variable ( . let, name: " count " , type: " Int " , equals: " 0 " )
@@ -60,7 +60,7 @@ struct ExtensionTests {
6060
6161 // MARK: - Extension with Inheritance Tests
6262
63- @Test func testExtensionWithSingleInheritance( ) {
63+ @Test internal func testExtensionWithSingleInheritance( ) {
6464 let extensionDecl = Extension ( " MyEnum " ) {
6565 TypeAlias ( " MappedType " , equals: " String " )
6666 } . inherits ( " MappedValueRepresentable " )
@@ -71,7 +71,7 @@ struct ExtensionTests {
7171 #expect( generated. contains ( " typealias MappedType = String " ) )
7272 }
7373
74- @Test func testExtensionWithMultipleInheritance( ) {
74+ @Test internal func testExtensionWithMultipleInheritance( ) {
7575 let extensionDecl = Extension ( " MyEnum " ) {
7676 TypeAlias ( " MappedType " , equals: " String " )
7777 } . inherits ( " MappedValueRepresentable " , " MappedValueRepresented " )
@@ -83,7 +83,7 @@ struct ExtensionTests {
8383 #expect( generated. contains ( " typealias MappedType = String " ) )
8484 }
8585
86- @Test func testExtensionWithoutInheritance( ) {
86+ @Test internal func testExtensionWithoutInheritance( ) {
8787 let extensionDecl = Extension ( " MyType " ) {
8888 Variable ( . let, name: " constant " , type: " String " , equals: " value " )
8989 }
@@ -97,7 +97,7 @@ struct ExtensionTests {
9797
9898 // MARK: - Extension with Complex Members Tests
9999
100- @Test func testExtensionWithStaticVariables( ) {
100+ @Test internal func testExtensionWithStaticVariables( ) {
101101 let array : [ String ] = [ " a " , " b " , " c " ]
102102 let dict : [ Int : String ] = [ 1 : " one " , 2 : " two " ]
103103
@@ -118,7 +118,7 @@ struct ExtensionTests {
118118 #expect( generated. contains ( " 2: \" two \" " ) )
119119 }
120120
121- @Test func testExtensionWithFunctions( ) {
121+ @Test internal func testExtensionWithFunctions( ) {
122122 let extensionDecl = Extension ( " String " ) {
123123 Function ( " uppercasedFirst " , returns: " String " ) {
124124 Return {
@@ -136,7 +136,7 @@ struct ExtensionTests {
136136
137137 // MARK: - Edge Cases
138138
139- @Test func testExtensionWithEmptyBody( ) {
139+ @Test internal func testExtensionWithEmptyBody( ) {
140140 let extensionDecl = Extension ( " EmptyType " ) {
141141 // Empty body
142142 }
@@ -148,7 +148,7 @@ struct ExtensionTests {
148148 #expect( generated. contains ( " } " ) )
149149 }
150150
151- @Test func testExtensionWithSpecialCharactersInName( ) {
151+ @Test internal func testExtensionWithSpecialCharactersInName( ) {
152152 let extensionDecl = Extension ( " MyType<T> " ) {
153153 Variable ( . let, name: " generic " , type: " T " , equals: " nil " )
154154 }
@@ -159,7 +159,7 @@ struct ExtensionTests {
159159 #expect( generated. contains ( " let generic: T = nil " ) )
160160 }
161161
162- @Test func testInheritsMethodReturnsNewInstance( ) {
162+ @Test internal func testInheritsMethodReturnsNewInstance( ) {
163163 let original = Extension ( " Test " ) {
164164 Variable ( . let, name: " value " , type: " Int " , equals: " 42 " )
165165 }
0 commit comments