Skip to content

Commit 8ad25df

Browse files
committed
removing parser tests for now
1 parent 70599c4 commit 8ad25df

File tree

5 files changed

+31
-234
lines changed

5 files changed

+31
-234
lines changed

Tests/SyntaxKitTests/ExtensionTests.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

Tests/SyntaxKitTests/FunctionTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import Testing
22

33
@testable import SyntaxKit
44

5-
struct FunctionTests {
6-
@Test func testBasicFunction() throws {
5+
internal struct FunctionTests {
6+
@Test internal func testBasicFunction() throws {
77
let function = Function("calculateSum", returns: "Int") {
88
Parameter(name: "a", type: "Int")
99
Parameter(name: "b", type: "Int")
@@ -27,7 +27,7 @@ struct FunctionTests {
2727
#expect(normalizedGenerated == normalizedExpected)
2828
}
2929

30-
@Test func testStaticFunction() throws {
30+
@Test internal func testStaticFunction() throws {
3131
let function = Function(
3232
"createInstance", returns: "MyType",
3333
{
@@ -55,7 +55,7 @@ struct FunctionTests {
5555
#expect(normalizedGenerated == normalizedExpected)
5656
}
5757

58-
@Test func testMutatingFunction() throws {
58+
@Test internal func testMutatingFunction() throws {
5959
let function = Function(
6060
"updateValue",
6161
{

Tests/SyntaxKitTests/ParserTests.swift

Lines changed: 0 additions & 203 deletions
This file was deleted.

Tests/SyntaxKitTests/String+Normalize.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33
extension String {
4-
func normalize() -> String {
4+
internal func normalize() -> String {
55
self
66
.replacingOccurrences(of: "//.*$", with: "", options: .regularExpression)
77
.replacingOccurrences(of: "\\s*:\\s*", with: ": ", options: .regularExpression)

0 commit comments

Comments
 (0)