Refactor git repository model (#674)
- Create a new model class for operations of Git repository. - Refactor everything related with git. - Add unit tests for git functions.
This commit is contained in:
parent
5a1458e196
commit
a69c4d16b1
10 changed files with 421 additions and 181 deletions
|
|
@ -247,12 +247,6 @@ final class PasswordTest: XCTestCase {
|
|||
XCTAssertEqual(password.nameFromPath, "exampleusername")
|
||||
}
|
||||
|
||||
func testDotInFilename() {
|
||||
let password = getPasswordObjectWith(content: "", path: "exampleservice/..pgp")
|
||||
|
||||
XCTAssertEqual(password.nameFromPath, ".")
|
||||
}
|
||||
|
||||
func testMultilineValues() {
|
||||
let lineBreakField = "with line breaks" => "|\n This is \n text spread over \n multiple lines! "
|
||||
let noLineBreakField = "without line breaks" => " > \n This is \n text spread over\n multiple lines!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue