Skip to content

Commit 4ddeec0

Browse files
Fix mocks
1 parent 26f517e commit 4ddeec0

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

internal/config/mocks.go

Lines changed: 43 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/config/profile_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func TestProfile_Rename(t *testing.T) {
231231
}
232232

233233
ctrl := gomock.NewController(t)
234-
configStore := NewMockConfigStore(ctrl)
234+
configStore := NewMockStore(ctrl)
235235
if !tt.wantErr {
236236
configStore.EXPECT().RenameProfile(DefaultProfile, tt.name).Return(nil).Times(1)
237237
}
@@ -278,7 +278,7 @@ func TestProfile_SetName(t *testing.T) {
278278
ctrl := gomock.NewController(t)
279279
p := &Profile{
280280
name: tt.name,
281-
configStore: NewMockConfigStore(ctrl),
281+
configStore: NewMockStore(ctrl),
282282
}
283283
tt.wantErr(t, p.SetName(tt.name), fmt.Sprintf("SetName(%v)", tt.name))
284284
})

internal/config/viper_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:generate go tool go.uber.org/mock/mockgen -destination=./mocks.go -package=config github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config ConfigStore
15+
//go:generate go tool go.uber.org/mock/mockgen -destination=./mocks.go -package=config github.com/mongodb/mongodb-atlas-cli/atlascli/internal/config Store
1616

1717
package config
1818

0 commit comments

Comments
 (0)