Skip to content

Commit

Permalink
refactor: move the mocks to test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Feb 6, 2024
1 parent 80314dd commit 64ecd58
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
- "test/**/*"
- "examples/**/*"
- "internal/**/*"
- "mocks/**/*"
- "testkit/**/*"
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mock:
RUN mockery --all --dir discovery --recursive --keeptree --exported=true --with-expecter=true --inpackage=true --output ./mocks/discovery --case snake
RUN mockery --all --dir cluster --recursive --keeptree --exported=true --with-expecter=true --inpackage=true --output ./mocks/cluster --case snake

SAVE ARTIFACT ./mocks mocks AS LOCAL mocks
SAVE ARTIFACT ./mocks mocks AS LOCAL test/mocks


lint:
Expand Down
2 changes: 1 addition & 1 deletion actors/actor_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/tochemey/goakt/discovery"
"github.com/tochemey/goakt/log"
testkit "github.com/tochemey/goakt/mocks/discovery"
addresspb "github.com/tochemey/goakt/pb/address/v1"
eventspb "github.com/tochemey/goakt/pb/events/v1"
"github.com/tochemey/goakt/telemetry"
testpb "github.com/tochemey/goakt/test/data/pb/v1"
testkit "github.com/tochemey/goakt/test/mocks/discovery"
"github.com/travisjeffery/go-dynaport"
sdkmetric "go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/metric/metricdata"
Expand Down
2 changes: 1 addition & 1 deletion cluster/discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/tochemey/goakt/discovery"
"github.com/tochemey/goakt/discovery/kubernetes"
"github.com/tochemey/goakt/log"
testkit "github.com/tochemey/goakt/mocks/discovery"
testkit "github.com/tochemey/goakt/test/mocks/discovery"
"github.com/travisjeffery/go-dynaport"
)

Expand Down
2 changes: 1 addition & 1 deletion cluster/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import (
"github.com/tochemey/goakt/discovery/nats"
internalpb "github.com/tochemey/goakt/internal/v1"
"github.com/tochemey/goakt/log"
testkit "github.com/tochemey/goakt/mocks/discovery"
eventspb "github.com/tochemey/goakt/pb/events/v1"
testkit "github.com/tochemey/goakt/test/mocks/discovery"
"github.com/travisjeffery/go-dynaport"
"google.golang.org/protobuf/proto"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 64ecd58

Please sign in to comment.