Skip to content

Commit

Permalink
Update sc client mock
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Mendoza <[email protected]>
  • Loading branch information
jeffmendoza committed May 3, 2024
1 parent 25f0728 commit d48c7a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/scorecard/scorecard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package scorecard

import (
"context"
"io"
"net/http"
"testing"
time "time"
Expand Down Expand Up @@ -128,6 +129,10 @@ func (m mockRC) Close() error {
return close()
}

func (m mockRC) GetFileReader(filename string) (io.ReadCloser, error) {
return nil, nil
}

func TestGetNew(t *testing.T) {
var makeCalled, createCalled, initCalled bool
githubrepoMakeGitHubRepo = func(s string) (clients.Repo, error) {
Expand Down

0 comments on commit d48c7a7

Please sign in to comment.