Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Mar 25, 2022
1 parent cf4bda5 commit 1833968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks/maintained_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
// nolint: gocognit
// ignoring the linter for cyclomatic complexity because it is a test func
// TestMaintained tests the maintained check.
func TestMaintained(t *testing.T) {
func Test_Maintained(t *testing.T) {
t.Parallel()
threeHundredDaysAgo := time.Now().AddDate(0, 0, -300)
twoHundredDaysAgo := time.Now().AddDate(0, 0, -200)
Expand Down Expand Up @@ -304,7 +304,7 @@ func TestMaintained(t *testing.T) {
RepoClient: mockRepo,
}
req.Dlogger = &scut.TestDetailLogger{}
res := IsMaintained(&req)
res := Maintained(&req)

if tt.err != nil {
if res.Error2 == nil {
Expand Down

0 comments on commit 1833968

Please sign in to comment.