diff --git a/Documentation/Sample.swift b/Documentation/Sample.swift index 0eb8a14e7..d0e439028 100644 --- a/Documentation/Sample.swift +++ b/Documentation/Sample.swift @@ -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 diff --git a/Tests/MASTests/Extensions/Data.swift b/Tests/MASTests/Extensions/Data.swift index 63fc6957c..0cbc2d5c2 100644 --- a/Tests/MASTests/Extensions/Data.swift +++ b/Tests/MASTests/Extensions/Data.swift @@ -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, diff --git a/Tests/MASTests/Network/MockNetworkSession.swift b/Tests/MASTests/Network/MockNetworkSession.swift index d8a06b617..f4911713c 100644 --- a/Tests/MASTests/Network/MockNetworkSession.swift +++ b/Tests/MASTests/Network/MockNetworkSession.swift @@ -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()) }