Skip to content

Commit

Permalink
chore: replace golanc/mock to uber-go/mock
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Nov 11, 2024
1 parent 0be3194 commit 3e10acb
Show file tree
Hide file tree
Showing 20 changed files with 363 additions and 273 deletions.
2 changes: 1 addition & 1 deletion simulator/clusterresourceimporter/importer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/golang/mock/gomock"
"go.uber.org/mock/gomock"
"golang.org/x/xerrors"

m "sigs.k8s.io/kube-scheduler-simulator/simulator/clusterresourceimporter/mock_clusterresourceimporter"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion simulator/resourcewatcher/eventproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
"golang.org/x/xerrors"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
13 changes: 9 additions & 4 deletions simulator/resourcewatcher/mock_eventproxy_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions simulator/resourcewatcher/mock_resourcewatcher/lister.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions simulator/resourcewatcher/mock_resourcewatcher/streamWriter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion simulator/resourcewatcher/resourcewatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/golang/mock/gomock"
"go.uber.org/mock/gomock"
"golang.org/x/xerrors"
corev1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes/fake"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package streamwriter
import (
"testing"

"github.com/golang/mock/gomock"
"go.uber.org/mock/gomock"
"golang.org/x/xerrors"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Loading

0 comments on commit 3e10acb

Please sign in to comment.