Skip to content

Commit

Permalink
refactor: fix broken mocks package
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Feb 7, 2024
1 parent 13ba727 commit cd8d2c0
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
- "examples/**/*"
- "internal/**/*"
- "testkit/**/*"
- "mocks"
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 test/mocks
SAVE ARTIFACT ./mocks mocks AS LOCAL mocks


lint:
Expand Down
3 changes: 2 additions & 1 deletion actors/actor_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import (
"testing"
"time"

testkit "github.com/tochemey/goakt/mocks/discovery"

"github.com/google/uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand All @@ -42,7 +44,6 @@ import (
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
3 changes: 2 additions & 1 deletion cluster/discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ import (
"fmt"
"testing"

testkit "github.com/tochemey/goakt/mocks/discovery"

"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/tochemey/goakt/discovery"
"github.com/tochemey/goakt/discovery/kubernetes"
"github.com/tochemey/goakt/log"
testkit "github.com/tochemey/goakt/test/mocks/discovery"
"github.com/travisjeffery/go-dynaport"
)

Expand Down
3 changes: 2 additions & 1 deletion cluster/hasher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ package cluster
import (
"testing"

testkit "github.com/tochemey/goakt/mocks/hash"

"github.com/stretchr/testify/assert"
testkit "github.com/tochemey/goakt/test/mocks/hash"
)

func TestHasher(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion cluster/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import (
"testing"
"time"

testkit "github.com/tochemey/goakt/mocks/discovery"

"github.com/google/uuid"
natsserver "github.com/nats-io/nats-server/v2/server"
"github.com/stretchr/testify/assert"
Expand All @@ -41,7 +43,6 @@ import (
internalpb "github.com/tochemey/goakt/internal/v1"
"github.com/tochemey/goakt/log"
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
3 changes: 2 additions & 1 deletion cluster/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ import (
"testing"
"time"

testkit "github.com/tochemey/goakt/mocks/hash"

"github.com/stretchr/testify/assert"
"github.com/tochemey/goakt/log"
testkit "github.com/tochemey/goakt/test/mocks/hash"
)

func TestOptions(t *testing.T) {
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 cd8d2c0

Please sign in to comment.