@@ -54,20 +54,24 @@ class GitLiveTests: XCTestCase {
54
54
extension GitLiveTests {
55
55
56
56
func test_commitCount( ) async throws {
57
+ let path = self . path
57
58
try await XCTAssertEqualAsync ( try await Git . commitCount ( at: path) , 57 )
58
59
}
59
60
60
61
func test_firstCommitDate( ) async throws {
62
+ let path = self . path
61
63
try await XCTAssertEqualAsync ( try await Git . firstCommitDate ( at: path) ,
62
64
Date ( timeIntervalSince1970: 1426918070 ) ) // Sat, 21 March 2015
63
65
}
64
66
65
67
func test_lastCommitDate( ) async throws {
68
+ let path = self . path
66
69
try await XCTAssertEqualAsync ( try await Git . lastCommitDate ( at: path) ,
67
70
Date ( timeIntervalSince1970: 1554248253 ) ) // Sat, 21 March 2015
68
71
}
69
72
70
73
func test_getTags( ) async throws {
74
+ let path = self . path
71
75
try await XCTAssertEqualAsync (
72
76
try await Git . getTags ( at: path) ,
73
77
[ . tag( 0 , 2 , 0 ) ,
@@ -93,11 +97,13 @@ extension GitLiveTests {
93
97
}
94
98
95
99
func test_hasBranch( ) async throws {
100
+ let path = self . path
96
101
try await XCTAssertEqualAsync ( try await Git . hasBranch ( . branch( " master " ) , at: path) , true )
97
102
try await XCTAssertEqualAsync ( try await Git . hasBranch ( . branch( " main " ) , at: path) , false )
98
103
}
99
104
100
105
func test_revisionInfo( ) async throws {
106
+ let path = self . path
101
107
try await XCTAssertEqualAsync ( try await Git . revisionInfo ( . tag( 0 , 5 , 2 ) , at: path) ,
102
108
. init( commit: " 178566b112afe6bef3770678f1bbab6e5c626993 " ,
103
109
date: . init( timeIntervalSince1970: 1554248253 ) ) )
@@ -107,6 +113,7 @@ extension GitLiveTests {
107
113
}
108
114
109
115
func test_shortlog( ) async throws {
116
+ let path = self . path
110
117
try await XCTAssertEqualAsync ( try await Git . shortlog ( at: path) , """
111
118
36 \t Neil Pankey
112
119
21 \t Jacob Williams
0 commit comments