Update to gopengpg v2.0.0

This commit is contained in:
Mingshen Sun 2020-04-11 23:23:38 -07:00
parent 9a688b518f
commit 84b1c07f64
13 changed files with 314 additions and 56 deletions

View 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()
// }
}