Просмотр исходного кода

Fix unit tests, mark method as private

Sam King 1 год назад
Родитель
Сommit
50c3fa8dcc

+ 1 - 1
Trio/Sources/APS/OpenAPSSwift/Profile/ProfileGenerator.swift

@@ -110,7 +110,7 @@ enum ProfileGenerator {
     }
 
     /// Direct port of the OpenAPS profile generate function
-    static func generate(
+    private static func generate(
         pumpSettings: PumpSettings,
         bgTargets: BGTargets,
         basalProfile: [BasalProfileEntry],

+ 2 - 2
TrioTests/OpenAPSSwiftTests/JSONCompareTests.swift

@@ -1,6 +1,6 @@
 import Foundation
-@testable import FreeAPS
 import Testing
+@testable import Trio
 
 @Suite("JSON Compare") struct JSONCompareTests {
     // Test fixtures
@@ -44,7 +44,7 @@ import Testing
 
         let differences = try JSONCompare.differences(
             function: .makeProfile,
-            native: swiftJSON,
+            swift: swiftJSON,
             javascript: jsJSON
         )