Skip to content

Commit

Permalink
Generated Project
Browse files Browse the repository at this point in the history
  • Loading branch information
calebkleveter committed Apr 20, 2018
0 parents commit e0a0f3c
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
14 changes: 14 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "APIErrorMiddleware",
products: [
.library(name: "APIErrorMiddleware", targets: ["APIErrorMiddleware"]),
],
dependencies: [
],
targets: [
.target(name: "APIErrorMiddleware", dependencies: []),
.testTarget(name: "APIErrorMiddlewareTests", dependencies: ["APIErrorMiddleware"]),
]
)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# APIErrorMiddleware

A description of this package.
3 changes: 3 additions & 0 deletions Sources/APIErrorMiddleware/APIErrorMiddleware.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
struct APIErrorMiddleware {
var text = "Hello, World!"
}
16 changes: 16 additions & 0 deletions Tests/APIErrorMiddlewareTests/APIErrorMiddlewareTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import XCTest
@testable import APIErrorMiddleware

final class APIErrorMiddlewareTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(APIErrorMiddleware().text, "Hello, World!")
}


static var allTests = [
("testExample", testExample),
]
}
9 changes: 9 additions & 0 deletions Tests/APIErrorMiddlewareTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest

#if !os(macOS)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(APIErrorMiddlewareTests.allTests),
]
}
#endif
7 changes: 7 additions & 0 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import XCTest

import APIErrorMiddlewareTests

var tests = [XCTestCaseEntry]()
tests += APIErrorMiddlewareTests.allTests()
XCTMain(tests)

0 comments on commit e0a0f3c

Please sign in to comment.