Skip to content

Commit

Permalink
fix: refactor documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gulivero1773 committed Jan 31, 2024
1 parent fece2c7 commit 95756a0
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down Expand Up @@ -36,7 +36,7 @@ extension Application {
public var serviceId: UUID {
get {
guard let serviceId = storage[ServiceIdKey.self] else {
fatalError("ServiceId not setup for application")
preconditionError("ServiceId not setup for application")
}
return serviceId
}
Expand All @@ -53,7 +53,7 @@ extension Application {
public var releaseId: String {
get {
guard let releaseId = storage[ReleaseIdKey.self] else {
fatalError("ReleaseId not setup for application")
preconditionError("ReleaseId not setup for application")
}
return releaseId
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppHealthChecks/Response/ComponentName.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppHealthChecks/Response/ComponentType.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppHealthChecks/Response/HealthCheck.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppHealthChecks/Response/HealthCheckItem.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppHealthChecks/Response/HealthCheckStatus.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppHealthChecks/Response/MeasurementType.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down
8 changes: 4 additions & 4 deletions Tests/AppHealthChecksTests/AppHealthChecksTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// FS Dependency Injection
// FS App Health Checks
// Copyright (C) 2024 FREEDOM SPACE, LLC

//
Expand Down Expand Up @@ -42,17 +42,17 @@ final class AppHealthChecksTests: XCTestCase {
app.shutdown()
}

func testGetMajorVersion() throws {
func testGetMajorVersion() {
let version = AppHealthChecks().getPublicVersion(from: releaseId)
XCTAssertEqual(version, 1)
}

func testGetMajorVersionForDefaultVersion() throws {
func testGetMajorVersionForDefaultVersion() {
let version = AppHealthChecks().getPublicVersion(from: "1-0-0")
XCTAssertEqual(version, 0)
}

func testGetHealth() throws {
func testGetHealth() {
app.serviceId = serviceId
app.releaseId = releaseId
let response = AppHealthChecks().getHealth(from: app)
Expand Down

0 comments on commit 95756a0

Please sign in to comment.