Skip to content

Commit

Permalink
chore: remove nested internal package (#53)
Browse files Browse the repository at this point in the history
We ended up with nested internal packages when we moved the coord
package to internal. This change moves the nested internal packages up
to the main internal package.
  • Loading branch information
iand authored Oct 5, 2023
1 parent 4a89594 commit d2e54d5
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion internal/coord/brdcst/brdcst_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package brdcst
import (
"testing"

"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

func TestBroadcastState_interface_conformance(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/brdcst/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/coordt"
"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

// Assert that Pool implements the common state machine interface
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/coordinator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/coordt"
"github.com/plprobelab/zikade/internal/coord/internal/nettest"
"github.com/plprobelab/zikade/internal/kadtest"
"github.com/plprobelab/zikade/internal/nettest"
"github.com/plprobelab/zikade/kadt"
"github.com/plprobelab/zikade/pb"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"go.opentelemetry.io/otel/trace"
"golang.org/x/exp/slog"

"github.com/plprobelab/zikade/internal/coord/internal/nettest"
"github.com/plprobelab/zikade/internal/kadtest"
"github.com/plprobelab/zikade/internal/nettest"
)

// TODO: this is just a basic is-it-working test that needs to be improved
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/query/iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/plprobelab/go-libdht/kad/key"
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/query/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/coordt"
"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

func TestPoolConfigValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/query/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/coordt"
"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

func TestQueryConfigValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/routing/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/coordt"
"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

func TestBootstrapConfigValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/routing/explore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

func TestExploreConfigValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/routing/include_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/plprobelab/go-libdht/kad/triert"
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

func TestIncludeConfigValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/routing/probe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/plprobelab/go-libdht/kad/triert"
"github.com/stretchr/testify/require"

"github.com/plprobelab/zikade/internal/coord/internal/tiny"
"github.com/plprobelab/zikade/internal/tiny"
)

var _ heap.Interface = (*nodeValuePendingList[tiny.Key, tiny.Node])(nil)
Expand Down
2 changes: 1 addition & 1 deletion internal/coord/routing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

"github.com/plprobelab/zikade/internal/coord/coordt"
"github.com/plprobelab/zikade/internal/coord/cplutil"
"github.com/plprobelab/zikade/internal/coord/internal/nettest"
"github.com/plprobelab/zikade/internal/coord/routing"
"github.com/plprobelab/zikade/internal/kadtest"
"github.com/plprobelab/zikade/internal/nettest"
"github.com/plprobelab/zikade/kadt"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d2e54d5

Please sign in to comment.