Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Documentation/Sample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
// MARK: Types & naming

/// The first letter of a type should be uppercase.
/// Prefer structs. When a class is necessary, default to making it `final`.
///
/// Prefer structs. When a class is necessary, default to making it `final`
final class Sample {
let name: String

Expand Down
1 change: 1 addition & 0 deletions Tests/MASTests/Extensions/Data.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ extension Data {
/// - resourcePath: Relative path of resource within subfolderPath
/// - ext: Extension of the resource
/// - subfolderPath: Relative path of folder within the module
/// - Throws: An `Error` if any problem occurs.
init(
fromResource resourcePath: String?,
withExtension ext: String? = nil,
Expand Down
1 change: 1 addition & 0 deletions Tests/MASTests/Network/MockNetworkSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct MockNetworkSession: NetworkSession {
/// Initializes a mock URL session with a resource for the response.
///
/// - Parameter responseResource: Resource containing response body.
/// - Throws: An `Error` if any problem occurs.
init(responseResource: String) throws {
data = (try Data(fromResource: responseResource), URLResponse())
}
Expand Down