Move mocks to internal package

This commit is contained in:
Peter 2020-04-14 00:20:22 +02:00
parent 9236a38be0
commit 43d3c62e01
6 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
//go:generate mockgen -source=endpoint.go -destination=./../../mock/endpoint_mock.go -package=mock
//go:generate mockgen -source=endpoint.go -destination=./../../internal/mock/endpoint_mock.go -package=mock
package endpoints
import (

View file

@ -2,8 +2,8 @@ package endpoints
import (
"github.com/baez90/inetmock/internal/config"
"github.com/baez90/inetmock/internal/mock"
"github.com/baez90/inetmock/internal/plugins"
"github.com/baez90/inetmock/mock"
"github.com/baez90/inetmock/pkg/logging"
"github.com/golang/mock/gomock"
"testing"

View file

@ -3,7 +3,7 @@ package endpoints
import (
"fmt"
"github.com/baez90/inetmock/internal/config"
"github.com/baez90/inetmock/mock"
"github.com/baez90/inetmock/internal/mock"
"github.com/baez90/inetmock/pkg/api"
"github.com/golang/mock/gomock"
"testing"

View file

@ -1,4 +1,4 @@
//go:generate mockgen -source=loading.go -destination=./../../mock/plugins_mock.go -package=mock
//go:generate mockgen -source=loading.go -destination=./../../internal/mock/handler_registry_mock.go -package=mock
package plugins
import (

View file

@ -1,4 +1,4 @@
//go:generate mockgen -source=protocol_handler.go -destination=./../../mock/protocol_handler_mock.go -package=mock
//go:generate mockgen -source=protocol_handler.go -destination=./../../internal/mock/protocol_handler_mock.go -package=mock
package api
import (

View file

@ -1,4 +1,4 @@
//go:generate mockgen -source=logger.go -destination=./../../mock/logger_mock.go -package=mock
//go:generate mockgen -source=logger.go -destination=./../../internal/mock/logger_mock.go -package=mock
package logging
import "go.uber.org/zap"