Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Create an empty import that can be used to allow importing Results fr…
Browse files Browse the repository at this point in the history
…om either target
  • Loading branch information
syoung-smallwisdom committed Oct 28, 2022
1 parent cbca285 commit 4431eda
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2020, Sage Bionetworks
Copyright (c) 2020-2022, Sage Bionetworks
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
9 changes: 8 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "JsonModel",
targets: ["JsonModel"]),
targets: ["JsonModel", "ResultModel"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -31,5 +31,12 @@ let package = Package(
.testTarget(
name: "JsonModelTests",
dependencies: ["JsonModel"]),

.target(
name: "ResultModel",
dependencies: ["JsonModel"]),
.testTarget(
name: "ResultModelTests",
dependencies: ["ResultModel"]),
]
)
1 change: 1 addition & 0 deletions Sources/ResultModel/Placeholder.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import Foundation
28 changes: 28 additions & 0 deletions Tests/ResultModelTests/PlaceholderTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import XCTest

final class PlaceholderTests: XCTestCase {

override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}

override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}

func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}

func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}

}

0 comments on commit 4431eda

Please sign in to comment.