Skip to content

Commit

Permalink
fix up cherry-pick to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalehorn committed Dec 8, 2021
1 parent fd89b79 commit e7c80e8
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func TestCheck(t *testing.T) {
pullRequests: testPullRequests,
files: [][]string{},
expected: resource.CheckResponse{
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
Expand All @@ -81,7 +85,6 @@ func TestCheck(t *testing.T) {
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),

},
},

Expand All @@ -95,6 +98,16 @@ func TestCheck(t *testing.T) {
pullRequests: testPullRequests,
files: [][]string{},
expected: resource.CheckResponse{
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[4], testPullRequests[4].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
},
Expand Down Expand Up @@ -150,6 +163,10 @@ func TestCheck(t *testing.T) {
version: resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
pullRequests: testPullRequests,
expected: resource.CheckResponse{
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
Expand All @@ -172,6 +189,16 @@ func TestCheck(t *testing.T) {
version: resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
pullRequests: testPullRequests,
expected: resource.CheckResponse{
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[4], testPullRequests[4].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
},
},
Expand All @@ -186,6 +213,16 @@ func TestCheck(t *testing.T) {
version: resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
pullRequests: testPullRequests,
expected: resource.CheckResponse{
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[4], testPullRequests[4].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[3], testPullRequests[3].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[2], testPullRequests[2].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[1], testPullRequests[1].Tip.CommittedDate.Time),
},
Expand All @@ -201,6 +238,10 @@ func TestCheck(t *testing.T) {
version: resource.NewVersion(testPullRequests[5], testPullRequests[5].Tip.CommittedDate.Time),
pullRequests: testPullRequests,
expected: resource.CheckResponse{
resource.NewVersion(testPullRequests[14], testPullRequests[14].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[13], testPullRequests[13].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[12], testPullRequests[12].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[11], testPullRequests[11].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[8], testPullRequests[8].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[7], testPullRequests[7].Tip.CommittedDate.Time),
resource.NewVersion(testPullRequests[6], testPullRequests[6].Tip.CommittedDate.Time),
Expand Down

0 comments on commit e7c80e8

Please sign in to comment.