Skip to content

Commit

Permalink
moved mock_api to util/mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Chen authored and Joseph Chen committed May 31, 2024
1 parent 097b402 commit 232bf4e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions pkg/util/ocm/api/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package api

// Copyright (c) Microsoft Corporation.
// Licensed under the Apache License 2.0.

//go:generate rm -rf ../../mocks/ocm/$GOPACKAGE
//go:generate go run ../../../../vendor/github.com/golang/mock/mockgen -destination=../../mocks/ocm/$GOPACKAGE/$GOPACKAGE.go github.com/Azure/ARO-RP/pkg/util/ocm/$GOPACKAGE API
//go:generate go run ../../../../vendor/golang.org/x/tools/cmd/goimports -local=github.com/Azure/ARO-RP -e -w ../../mocks/ocm/$GOPACKAGE/$GOPACKAGE.go
7 changes: 0 additions & 7 deletions pkg/util/ocm/generate.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/util/ocm/ocm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

"github.com/golang/mock/gomock"

mock_api "github.com/Azure/ARO-RP/pkg/util/mocks/ocm/api"
"github.com/Azure/ARO-RP/pkg/util/ocm"
"github.com/Azure/ARO-RP/pkg/util/ocm/api"
mock_api "github.com/Azure/ARO-RP/pkg/util/ocm/api/mock"
)

func TestGetClusterInfoWithUpgradePolicies(t *testing.T) {
Expand Down

0 comments on commit 232bf4e

Please sign in to comment.