swiftgemini

[ACTIVE] gemini protocol in swift
git clone git://git.figbert.com/swiftgemini.git
Log | Files | Refs | README

commit 831010d672c6700aff8feebfa65260bb60ec0c76
Author: FIGBERT <figbert@figbert.com>
Date:   Sat, 24 Apr 2021 13:23:47 -0700

Initial commit

Diffstat:
A.gitignore | 5+++++
A.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | 7+++++++
A.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | 8++++++++
APackage.swift | 20++++++++++++++++++++
AREADME.md | 3+++
ASources/SwiftGemini/SwiftGemini.swift | 3+++
ATests/LinuxMain.swift | 7+++++++
ATests/SwiftGeminiTests/SwiftGeminiTests.swift | 15+++++++++++++++
ATests/SwiftGeminiTests/XCTestManifests.swift | 9+++++++++
9 files changed, 77 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Workspace + version = "1.0"> + <FileRef + location = "self:"> + </FileRef> +</Workspace> diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>IDEDidComputeMac32BitWarning</key> + <true/> +</dict> +</plist> diff --git a/Package.swift b/Package.swift @@ -0,0 +1,20 @@ +// swift-tools-version:5.3 +import PackageDescription + +let package = Package( + name: "SwiftGemini", + products: [ + .library( + name: "SwiftGemini", + targets: ["SwiftGemini"]), + ], + dependencies: [], + targets: [ + .target( + name: "SwiftGemini", + dependencies: []), + .testTarget( + name: "SwiftGeminiTests", + dependencies: ["SwiftGemini"]), + ] +) diff --git a/README.md b/README.md @@ -0,0 +1,3 @@ +# SwiftGemini + +A description of this package. diff --git a/Sources/SwiftGemini/SwiftGemini.swift b/Sources/SwiftGemini/SwiftGemini.swift @@ -0,0 +1,3 @@ +struct SwiftGemini { + var text = "Hello, World!" +} diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift @@ -0,0 +1,7 @@ +import XCTest + +import SwiftGeminiTests + +var tests = [XCTestCaseEntry]() +tests += SwiftGeminiTests.allTests() +XCTMain(tests) diff --git a/Tests/SwiftGeminiTests/SwiftGeminiTests.swift b/Tests/SwiftGeminiTests/SwiftGeminiTests.swift @@ -0,0 +1,15 @@ +import XCTest +@testable import SwiftGemini + +final class SwiftGeminiTests: 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(SwiftGemini().text, "Hello, World!") + } + + static var allTests = [ + ("testExample", testExample), + ] +} diff --git a/Tests/SwiftGeminiTests/XCTestManifests.swift b/Tests/SwiftGeminiTests/XCTestManifests.swift @@ -0,0 +1,9 @@ +import XCTest + +#if !canImport(ObjectiveC) +public func allTests() -> [XCTestCaseEntry] { + return [ + testCase(SwiftGeminiTests.allTests), + ] +} +#endif