Update to gopengpg v2.0.0
This commit is contained in:
parent
9a688b518f
commit
84b1c07f64
13 changed files with 314 additions and 56 deletions
36
passKitTests/Models/PasswordStoreTest.swift
Normal file
36
passKitTests/Models/PasswordStoreTest.swift
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
//
|
||||
// PasswordStoreTest.swift
|
||||
// passKitTests
|
||||
//
|
||||
// Copyright © 2020 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import XCTest
|
||||
import ObjectiveGit
|
||||
|
||||
@testable import passKit
|
||||
|
||||
class PasswordStoreTest: XCTestCase {
|
||||
// let cloneOptions: [String : GTCredentialProvider] = {
|
||||
// let credentialProvider = GTCredentialProvider { (_, _, _) -> (GTCredential?) in
|
||||
// try? GTCredential(userName: "", password: "")
|
||||
// }
|
||||
// return [GTRepositoryCloneOptionsCredentialProvider: credentialProvider]
|
||||
// }()
|
||||
// let remoteRepoURL = URL(string: "git://localhost/")!
|
||||
//
|
||||
// func testClone() throws {
|
||||
// let url = URL(fileURLWithPath: "\(Globals.repositoryPath)-test")
|
||||
// let passwordStore = PasswordStore(url: url)
|
||||
//
|
||||
// try passwordStore.cloneRepository(
|
||||
// remoteRepoURL: remoteRepoURL,
|
||||
// options: cloneOptions,
|
||||
// branchName: "master",
|
||||
// transferProgressBlock: { _, _ in },
|
||||
// checkoutProgressBlock: { _, _, _ in }
|
||||
// )
|
||||
// passwordStore.erase()
|
||||
// }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue