Add new analytics parameters pathSuffix
Some checks failed
openium/resgen.swift/pipeline/head There was a failure building this commit
Some checks failed
openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -234,7 +234,8 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
sections: [sectionOne, sectionTwo, sectionThree],
|
||||
tags: ["ios", "iosonly"],
|
||||
isStatic: false,
|
||||
visibility: .internal
|
||||
visibility: .internal,
|
||||
pathSuffix: "iOS"
|
||||
)
|
||||
|
||||
// Expect Analytics
|
||||
@@ -448,7 +449,8 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
sections: [sectionOne, sectionTwo, sectionThree],
|
||||
tags: ["ios", "iosonly"],
|
||||
isStatic: false,
|
||||
visibility: .internal
|
||||
visibility: .internal,
|
||||
pathSuffix: "iOS"
|
||||
)
|
||||
// Expect Analytics
|
||||
let expect = """
|
||||
@@ -664,7 +666,8 @@ final class AnalyticsGeneratorTests: XCTestCase {
|
||||
sections: [sectionOne, sectionTwo, sectionThree],
|
||||
tags: ["ios", "iosonly"],
|
||||
isStatic: false,
|
||||
visibility: .internal
|
||||
visibility: .internal,
|
||||
pathSuffix: "iOS"
|
||||
)
|
||||
|
||||
// Expect Analytics
|
||||
|
||||
@@ -20,7 +20,8 @@ final class AnalyticsConfigurationTests: XCTestCase {
|
||||
target: "matomo firebase",
|
||||
outputFile: "Analytics/Generated/AnalyticsManager.swift",
|
||||
visibility: nil,
|
||||
staticMembers: nil
|
||||
staticMembers: nil,
|
||||
pathSuffix: nil
|
||||
)
|
||||
|
||||
// When
|
||||
@@ -48,7 +49,8 @@ final class AnalyticsConfigurationTests: XCTestCase {
|
||||
target: "matomo firebase",
|
||||
outputFile: "Analytics/Generated/AnalyticsManager.swift",
|
||||
visibility: "public",
|
||||
staticMembers: false
|
||||
staticMembers: false,
|
||||
pathSuffix: "mySuffix"
|
||||
)
|
||||
|
||||
// When
|
||||
@@ -68,7 +70,9 @@ final class AnalyticsConfigurationTests: XCTestCase {
|
||||
"--visibility",
|
||||
"public",
|
||||
"--static-members",
|
||||
"false"
|
||||
"false",
|
||||
"--path-suffix",
|
||||
"mySuffix"
|
||||
]
|
||||
|
||||
XCTAssertEqual(arguments, expectedArguments)
|
||||
|
||||
Reference in New Issue
Block a user