Skip to content

Commit 98479fb

Browse files
committed
replace root mocks import with the libs import
1 parent 12eb6dc commit 98479fb

File tree

3 files changed

+4
-109
lines changed

3 files changed

+4
-109
lines changed

cli/cmd/digger/root.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
core_locking "github.com/diggerhq/digger/cli/pkg/core/locking"
99
core_policy "github.com/diggerhq/digger/cli/pkg/core/policy"
1010
core_reporting "github.com/diggerhq/digger/cli/pkg/core/reporting"
11-
github_pkg "github.com/diggerhq/digger/cli/pkg/github"
1211
"github.com/diggerhq/digger/cli/pkg/locking"
1312
"github.com/diggerhq/digger/cli/pkg/policy"
1413
"github.com/diggerhq/digger/cli/pkg/reporting"
@@ -74,8 +73,8 @@ func (r *RunConfig) GetServices() (*orchestrator.PullRequestService, *orchestrat
7473
ReportStrategy: ReportStrategy,
7574
IsSupportMarkdown: true,
7675
}
77-
prService = github_pkg.MockCiService{}
78-
orgService = github_pkg.MockCiService{}
76+
prService = orchestrator_github.MockCiService{}
77+
orgService = orchestrator_github.MockCiService{}
7978
default:
8079
return nil, nil, nil, fmt.Errorf("unknown reporter: %v", r.Reporter)
8180

cli/pkg/github/mocks.go

Lines changed: 0 additions & 103 deletions
This file was deleted.

ee/cli/cmd/digger/root.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
core_locking "github.com/diggerhq/digger/cli/pkg/core/locking"
99
core_policy "github.com/diggerhq/digger/cli/pkg/core/policy"
1010
core_reporting "github.com/diggerhq/digger/cli/pkg/core/reporting"
11-
github_pkg "github.com/diggerhq/digger/cli/pkg/github"
1211
"github.com/diggerhq/digger/cli/pkg/locking"
1312
"github.com/diggerhq/digger/cli/pkg/policy"
1413
"github.com/diggerhq/digger/cli/pkg/reporting"
@@ -75,8 +74,8 @@ func (r *RunConfig) GetServices() (*orchestrator.PullRequestService, *orchestrat
7574
ReportStrategy: ReportStrategy,
7675
IsSupportMarkdown: true,
7776
}
78-
prService = github_pkg.MockCiService{}
79-
orgService = github_pkg.MockCiService{}
77+
prService = orchestrator_github.MockCiService{}
78+
orgService = orchestrator_github.MockCiService{}
8079
default:
8180
return nil, nil, nil, fmt.Errorf("unknown reporter: %v", r.Reporter)
8281

0 commit comments

Comments
 (0)