@@ -73,6 +73,10 @@ func TestCheck(t *testing.T) {
73
73
pullRequests : testPullRequests ,
74
74
files : [][]string {},
75
75
expected : resource.CheckResponse {
76
+ resource .NewVersion (testPullRequests [14 ], testPullRequests [14 ].Tip .CommittedDate .Time ),
77
+ resource .NewVersion (testPullRequests [13 ], testPullRequests [13 ].Tip .CommittedDate .Time ),
78
+ resource .NewVersion (testPullRequests [12 ], testPullRequests [12 ].Tip .CommittedDate .Time ),
79
+ resource .NewVersion (testPullRequests [11 ], testPullRequests [11 ].Tip .CommittedDate .Time ),
76
80
resource .NewVersion (testPullRequests [8 ], testPullRequests [8 ].Tip .CommittedDate .Time ),
77
81
resource .NewVersion (testPullRequests [7 ], testPullRequests [7 ].Tip .CommittedDate .Time ),
78
82
resource .NewVersion (testPullRequests [6 ], testPullRequests [6 ].Tip .CommittedDate .Time ),
@@ -81,7 +85,6 @@ func TestCheck(t *testing.T) {
81
85
resource .NewVersion (testPullRequests [3 ], testPullRequests [3 ].Tip .CommittedDate .Time ),
82
86
resource .NewVersion (testPullRequests [2 ], testPullRequests [2 ].Tip .CommittedDate .Time ),
83
87
resource .NewVersion (testPullRequests [1 ], testPullRequests [1 ].Tip .CommittedDate .Time ),
84
-
85
88
},
86
89
},
87
90
@@ -95,6 +98,16 @@ func TestCheck(t *testing.T) {
95
98
pullRequests : testPullRequests ,
96
99
files : [][]string {},
97
100
expected : resource.CheckResponse {
101
+ resource .NewVersion (testPullRequests [14 ], testPullRequests [14 ].Tip .CommittedDate .Time ),
102
+ resource .NewVersion (testPullRequests [13 ], testPullRequests [13 ].Tip .CommittedDate .Time ),
103
+ resource .NewVersion (testPullRequests [12 ], testPullRequests [12 ].Tip .CommittedDate .Time ),
104
+ resource .NewVersion (testPullRequests [11 ], testPullRequests [11 ].Tip .CommittedDate .Time ),
105
+ resource .NewVersion (testPullRequests [8 ], testPullRequests [8 ].Tip .CommittedDate .Time ),
106
+ resource .NewVersion (testPullRequests [7 ], testPullRequests [7 ].Tip .CommittedDate .Time ),
107
+ resource .NewVersion (testPullRequests [6 ], testPullRequests [6 ].Tip .CommittedDate .Time ),
108
+ resource .NewVersion (testPullRequests [5 ], testPullRequests [5 ].Tip .CommittedDate .Time ),
109
+ resource .NewVersion (testPullRequests [4 ], testPullRequests [4 ].Tip .CommittedDate .Time ),
110
+ resource .NewVersion (testPullRequests [3 ], testPullRequests [3 ].Tip .CommittedDate .Time ),
98
111
resource .NewVersion (testPullRequests [2 ], testPullRequests [2 ].Tip .CommittedDate .Time ),
99
112
resource .NewVersion (testPullRequests [1 ], testPullRequests [1 ].Tip .CommittedDate .Time ),
100
113
},
@@ -150,6 +163,10 @@ func TestCheck(t *testing.T) {
150
163
version : resource .NewVersion (testPullRequests [1 ], testPullRequests [1 ].Tip .CommittedDate .Time ),
151
164
pullRequests : testPullRequests ,
152
165
expected : resource.CheckResponse {
166
+ resource .NewVersion (testPullRequests [14 ], testPullRequests [14 ].Tip .CommittedDate .Time ),
167
+ resource .NewVersion (testPullRequests [13 ], testPullRequests [13 ].Tip .CommittedDate .Time ),
168
+ resource .NewVersion (testPullRequests [12 ], testPullRequests [12 ].Tip .CommittedDate .Time ),
169
+ resource .NewVersion (testPullRequests [11 ], testPullRequests [11 ].Tip .CommittedDate .Time ),
153
170
resource .NewVersion (testPullRequests [8 ], testPullRequests [8 ].Tip .CommittedDate .Time ),
154
171
resource .NewVersion (testPullRequests [7 ], testPullRequests [7 ].Tip .CommittedDate .Time ),
155
172
resource .NewVersion (testPullRequests [6 ], testPullRequests [6 ].Tip .CommittedDate .Time ),
@@ -172,6 +189,16 @@ func TestCheck(t *testing.T) {
172
189
version : resource .NewVersion (testPullRequests [3 ], testPullRequests [3 ].Tip .CommittedDate .Time ),
173
190
pullRequests : testPullRequests ,
174
191
expected : resource.CheckResponse {
192
+ resource .NewVersion (testPullRequests [14 ], testPullRequests [14 ].Tip .CommittedDate .Time ),
193
+ resource .NewVersion (testPullRequests [13 ], testPullRequests [13 ].Tip .CommittedDate .Time ),
194
+ resource .NewVersion (testPullRequests [12 ], testPullRequests [12 ].Tip .CommittedDate .Time ),
195
+ resource .NewVersion (testPullRequests [11 ], testPullRequests [11 ].Tip .CommittedDate .Time ),
196
+ resource .NewVersion (testPullRequests [8 ], testPullRequests [8 ].Tip .CommittedDate .Time ),
197
+ resource .NewVersion (testPullRequests [7 ], testPullRequests [7 ].Tip .CommittedDate .Time ),
198
+ resource .NewVersion (testPullRequests [6 ], testPullRequests [6 ].Tip .CommittedDate .Time ),
199
+ resource .NewVersion (testPullRequests [5 ], testPullRequests [5 ].Tip .CommittedDate .Time ),
200
+ resource .NewVersion (testPullRequests [4 ], testPullRequests [4 ].Tip .CommittedDate .Time ),
201
+ resource .NewVersion (testPullRequests [3 ], testPullRequests [3 ].Tip .CommittedDate .Time ),
175
202
resource .NewVersion (testPullRequests [1 ], testPullRequests [1 ].Tip .CommittedDate .Time ),
176
203
},
177
204
},
@@ -186,6 +213,16 @@ func TestCheck(t *testing.T) {
186
213
version : resource .NewVersion (testPullRequests [3 ], testPullRequests [3 ].Tip .CommittedDate .Time ),
187
214
pullRequests : testPullRequests ,
188
215
expected : resource.CheckResponse {
216
+ resource .NewVersion (testPullRequests [14 ], testPullRequests [14 ].Tip .CommittedDate .Time ),
217
+ resource .NewVersion (testPullRequests [13 ], testPullRequests [13 ].Tip .CommittedDate .Time ),
218
+ resource .NewVersion (testPullRequests [12 ], testPullRequests [12 ].Tip .CommittedDate .Time ),
219
+ resource .NewVersion (testPullRequests [11 ], testPullRequests [11 ].Tip .CommittedDate .Time ),
220
+ resource .NewVersion (testPullRequests [8 ], testPullRequests [8 ].Tip .CommittedDate .Time ),
221
+ resource .NewVersion (testPullRequests [7 ], testPullRequests [7 ].Tip .CommittedDate .Time ),
222
+ resource .NewVersion (testPullRequests [6 ], testPullRequests [6 ].Tip .CommittedDate .Time ),
223
+ resource .NewVersion (testPullRequests [5 ], testPullRequests [5 ].Tip .CommittedDate .Time ),
224
+ resource .NewVersion (testPullRequests [4 ], testPullRequests [4 ].Tip .CommittedDate .Time ),
225
+ resource .NewVersion (testPullRequests [3 ], testPullRequests [3 ].Tip .CommittedDate .Time ),
189
226
resource .NewVersion (testPullRequests [2 ], testPullRequests [2 ].Tip .CommittedDate .Time ),
190
227
resource .NewVersion (testPullRequests [1 ], testPullRequests [1 ].Tip .CommittedDate .Time ),
191
228
},
@@ -201,6 +238,10 @@ func TestCheck(t *testing.T) {
201
238
version : resource .NewVersion (testPullRequests [5 ], testPullRequests [5 ].Tip .CommittedDate .Time ),
202
239
pullRequests : testPullRequests ,
203
240
expected : resource.CheckResponse {
241
+ resource .NewVersion (testPullRequests [14 ], testPullRequests [14 ].Tip .CommittedDate .Time ),
242
+ resource .NewVersion (testPullRequests [13 ], testPullRequests [13 ].Tip .CommittedDate .Time ),
243
+ resource .NewVersion (testPullRequests [12 ], testPullRequests [12 ].Tip .CommittedDate .Time ),
244
+ resource .NewVersion (testPullRequests [11 ], testPullRequests [11 ].Tip .CommittedDate .Time ),
204
245
resource .NewVersion (testPullRequests [8 ], testPullRequests [8 ].Tip .CommittedDate .Time ),
205
246
resource .NewVersion (testPullRequests [7 ], testPullRequests [7 ].Tip .CommittedDate .Time ),
206
247
resource .NewVersion (testPullRequests [6 ], testPullRequests [6 ].Tip .CommittedDate .Time ),
0 commit comments