Skip to content

Commit 3fb9cbf

Browse files
🎷 [UPDATE] Unit test bases added.
1 parent a40a2c3 commit 3fb9cbf

File tree

11 files changed

+264
-11
lines changed

11 files changed

+264
-11
lines changed

Tests/ACMOpenAITests/Audio/AudioTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class AudioTests: XCTestCase {}
8+
final class AudioTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Chat/ChatTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class ChatTests: XCTestCase {}
8+
final class ChatTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Completions/CompletionsTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class CompletionsTests: XCTest {}
8+
final class CompletionsTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Edits/EditsTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class EditsTests: XCTestCase {}
8+
final class EditsTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Embeddings/EmbeddingsTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class EmbeddingsTests: XCTestCase {}
8+
final class EmbeddingsTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Engines/EnginesTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class EnginesTests: XCTestCase {}
8+
final class EnginesTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Files/FilesTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class FilesTests: XCTestCase {}
8+
final class FilesTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/FineTunes/FineTunesTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
class FineTunesTests: XCTest {}
8+
class FineTunesTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Images/ImagesTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class ImagesTests: XCTestCase {}
8+
final class ImagesTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

Tests/ACMOpenAITests/Models/ModelsTests.swift

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,27 @@
55
@testable import ACMOpenAI
66
import XCTest
77

8-
final class ModelsTests: XCTestCase {}
8+
final class ModelsTests: XCTestCase {
9+
override func setUpWithError() throws {
10+
// Put setup code here. This method is called before the invocation of each test method in the class.
11+
}
12+
13+
override func tearDownWithError() throws {
14+
// Put teardown code here. This method is called after the invocation of each test method in the class.
15+
}
16+
17+
func testExample() throws {
18+
// This is an example of a functional test case.
19+
// Use XCTAssert and related functions to verify your tests produce the correct results.
20+
// Any test you write for XCTest can be annotated as throws and async.
21+
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
22+
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
23+
}
24+
25+
func testPerformanceExample() throws {
26+
// This is an example of a performance test case.
27+
measure {
28+
// Put the code you want to measure the time of here.
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)