Rename
This commit is contained in:
parent
5bf8b0e5e0
commit
353f13f235
|
@ -4,7 +4,7 @@
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "MultipartFormDataTestUtil",
|
name: "MultipartFormDataSwiftKit",
|
||||||
platforms: [
|
platforms: [
|
||||||
.macOS(.v10_14),
|
.macOS(.v10_14),
|
||||||
.iOS(.v11),
|
.iOS(.v11),
|
||||||
|
@ -14,8 +14,8 @@ let package = Package(
|
||||||
products: [
|
products: [
|
||||||
// Products define the executables and libraries produced by a package, and make them visible to other packages.
|
// Products define the executables and libraries produced by a package, and make them visible to other packages.
|
||||||
.library(
|
.library(
|
||||||
name: "MultipartFormDataTestUtil",
|
name: "MultipartFormDataSwiftKit",
|
||||||
targets: ["MultipartFormDataTestUtil"]),
|
targets: ["MultipartFormDataSwiftKit"]),
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
// Dependencies declare other packages that this package depends on.
|
// Dependencies declare other packages that this package depends on.
|
||||||
|
@ -26,12 +26,12 @@ let package = Package(
|
||||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||||
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
|
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
|
||||||
.target(
|
.target(
|
||||||
name: "MultipartFormDataTestUtil",
|
name: "MultipartFormDataSwiftKit",
|
||||||
dependencies: []),
|
dependencies: []),
|
||||||
.testTarget(
|
.testTarget(
|
||||||
name: "MultipartFormDataTestUtilTests",
|
name: "MultipartFormDataSwiftKitTests",
|
||||||
dependencies: [
|
dependencies: [
|
||||||
"MultipartFormDataTestUtil",
|
"MultipartFormDataSwiftKit",
|
||||||
"Alamofire",
|
"Alamofire",
|
||||||
"OHHTTPStubsSwift"
|
"OHHTTPStubsSwift"
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# MultipartFormDataTestUtil
|
# MultipartFormDataSwiftKit
|
||||||
|
|
||||||
A description of this package.
|
A description of this package.
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
struct MultipartFormDataSwiftKit {
|
||||||
|
}
|
|
@ -1,2 +0,0 @@
|
||||||
struct MultipartFormDataTestUtil {
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
import MultipartFormDataTestUtilTests
|
import MultipartFormDataSwiftKitTests
|
||||||
|
|
||||||
var tests = [XCTestCaseEntry]()
|
var tests = [XCTestCaseEntry]()
|
||||||
tests += MultipartFormDataTestUtilTests.allTests()
|
tests += MultipartFormDataSwiftKitTests.allTests()
|
||||||
XCTMain(tests)
|
XCTMain(tests)
|
||||||
|
|
|
@ -3,11 +3,11 @@ import Alamofire
|
||||||
import OHHTTPStubs
|
import OHHTTPStubs
|
||||||
import OHHTTPStubsSwift
|
import OHHTTPStubsSwift
|
||||||
|
|
||||||
import MultipartFormDataTestUtil
|
import MultipartFormDataSwiftKit
|
||||||
|
|
||||||
#if canImport(Cocoa)
|
#if canImport(Cocoa)
|
||||||
import Cocoa
|
import Cocoa
|
||||||
final class MultipartFormDataTestUtil_CocoaTests: XCTestCase {
|
final class MultipartFormDataSwiftKit_CocoaTests: XCTestCase {
|
||||||
|
|
||||||
override class func setUp() {
|
override class func setUp() {
|
||||||
super.setUp()
|
super.setUp()
|
|
@ -3,12 +3,12 @@ import Alamofire
|
||||||
import OHHTTPStubs
|
import OHHTTPStubs
|
||||||
import OHHTTPStubsSwift
|
import OHHTTPStubsSwift
|
||||||
|
|
||||||
import MultipartFormDataTestUtil
|
import MultipartFormDataSwiftKit
|
||||||
|
|
||||||
#if canImport(UIKit)
|
#if canImport(UIKit)
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
final class MultipartFormDataTestUtil_UIKitTests: XCTestCase {
|
final class MultipartFormDataSwiftKit_UIKitTests: XCTestCase {
|
||||||
|
|
||||||
override class func setUp() {
|
override class func setUp() {
|
||||||
super.setUp()
|
super.setUp()
|
|
@ -11,7 +11,7 @@ typealias Image = UIImage
|
||||||
import OHHTTPStubs
|
import OHHTTPStubs
|
||||||
import OHHTTPStubsSwift
|
import OHHTTPStubsSwift
|
||||||
|
|
||||||
import MultipartFormDataTestUtil
|
import MultipartFormDataSwiftKit
|
||||||
|
|
||||||
var uploadTestStubResponse: OHHTTPStubsResponseBlock = { request in
|
var uploadTestStubResponse: OHHTTPStubsResponseBlock = { request in
|
||||||
let errorResponse = { (message: String) -> OHHTTPStubsResponse in
|
let errorResponse = { (message: String) -> OHHTTPStubsResponse in
|
|
@ -3,7 +3,7 @@ import XCTest
|
||||||
#if !canImport(ObjectiveC)
|
#if !canImport(ObjectiveC)
|
||||||
public func allTests() -> [XCTestCaseEntry] {
|
public func allTests() -> [XCTestCaseEntry] {
|
||||||
return [
|
return [
|
||||||
testCase(MultipartFormDataTestUtilTests.allTests),
|
testCase(MultipartFormDataSwiftKitTests.allTests),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue