-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from diogot/test-in-many-devices
Test in many devices
- Loading branch information
Showing
42 changed files
with
144 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// MassRepositoryMock.swift | ||
// MyWeightTests | ||
// | ||
// Created by Diogo Tridapalli on 25/11/17. | ||
// Copyright © 2017 Diogo Tridapalli. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
@testable import MyWeight | ||
|
||
class MassRepositoryMock: MassRepository { | ||
var authorizationStatus: MassRepositoryAuthorizationStatus = .notDetermined | ||
|
||
var fetchResponse: [Mass]? | ||
func fetch(_ completion: @escaping (_ results: [Mass]) -> Void) { | ||
completion(self.fetchResponse ?? []) | ||
} | ||
|
||
var saveError: Error? | ||
func save(_ mass: Mass, completion: @escaping (Error?) -> Void) { | ||
completion(saveError) | ||
} | ||
|
||
var requestAuthorizationError: Error? | ||
func requestAuthorization(_ completion: @escaping (Error?) -> Void) { | ||
completion(requestAuthorizationError) | ||
} | ||
|
||
func requestAuthorizationForExtension() { | ||
} | ||
|
||
var deleteResponse: Error? | ||
public func delete(_ mass: Mass, completion: @escaping (Error?) -> Void) { | ||
completion(self.deleteResponse) | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+63.6 KB
...sDeniedViewController__should_have_the_correct_layout_iPhone11_2_320x568@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+130 KB
...sDeniedViewController__should_have_the_correct_layout_iPhone11_2_375x812@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.3 KB
..._should_have_the_correct_portrait_layout_on_all_Sizes_iPhone11_2_320x568@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 KB
..._should_have_the_correct_portrait_layout_on_all_Sizes_iPhone11_2_375x812@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+67.9 KB
...RequestViewController__should_have_the_correct_layout_iPhone11_2_320x640@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...RequestViewController__should_have_the_correct_layout_iPhone11_2_320x640@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+35.6 KB
...__with_empty_response__should_have_the_correct_layout_iPhone11_2_320x640@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+86.6 KB
...__with_empty_response__should_have_the_correct_layout_iPhone11_2_320x640@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.7 KB
...ontroller__with_items__should_have_the_correct_layout_iPhone11_2_320x640@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+157 KB
...ontroller__with_items__should_have_the_correct_layout_iPhone11_2_320x640@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.