Skip to content

Commit

Permalink
refactor: testutils -> internal/testutils
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Aug 17, 2024
1 parent 889ac9f commit 897fe16
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion common/configuration/asm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
ftlv1 "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1"
"github.com/TBD54566975/ftl/internal/log"
"github.com/TBD54566975/ftl/internal/slices"
"github.com/TBD54566975/ftl/testutils"
"github.com/TBD54566975/ftl/internal/testutils"

"connectrpc.com/connect"
"github.com/alecthomas/assert/v2"
Expand Down
2 changes: 1 addition & 1 deletion go-runtime/ftl/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/TBD54566975/ftl/go-runtime/internal"
"github.com/TBD54566975/ftl/internal/log"
"github.com/TBD54566975/ftl/internal/modulecontext"
. "github.com/TBD54566975/ftl/testutils/modulecontext"
. "github.com/TBD54566975/ftl/internal/testutils/modulecontext"
)

func TestConfig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go-runtime/ftl/ftltest/ftltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/TBD54566975/ftl/go-runtime/internal"
"github.com/TBD54566975/ftl/internal/log"
"github.com/TBD54566975/ftl/internal/modulecontext"
mcu "github.com/TBD54566975/ftl/testutils/modulecontext"
mcu "github.com/TBD54566975/ftl/internal/testutils/modulecontext"
)

type OptionsState struct {
Expand Down
5 changes: 3 additions & 2 deletions go-runtime/ftl/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ package ftl
import (
"context"
"fmt"
"github.com/TBD54566975/ftl/internal/log"
"strconv"
"testing"

"github.com/TBD54566975/ftl/internal/log"
. "github.com/TBD54566975/ftl/internal/testutils/modulecontext"

"github.com/alecthomas/assert/v2"

"github.com/TBD54566975/ftl/go-runtime/internal"
"github.com/TBD54566975/ftl/internal/modulecontext"
. "github.com/TBD54566975/ftl/testutils/modulecontext"
)

type intHandle int
Expand Down
2 changes: 1 addition & 1 deletion go-runtime/ftl/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/TBD54566975/ftl/go-runtime/internal"
"github.com/TBD54566975/ftl/internal/log"
"github.com/TBD54566975/ftl/internal/modulecontext"
. "github.com/TBD54566975/ftl/testutils/modulecontext"
. "github.com/TBD54566975/ftl/internal/testutils/modulecontext"
)

func TestSecret(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/encryption/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
in "github.com/TBD54566975/ftl/integration"
"github.com/TBD54566975/ftl/internal/log"
"github.com/TBD54566975/ftl/internal/slices"
"github.com/TBD54566975/ftl/testutils"
"github.com/TBD54566975/ftl/internal/testutils"

"connectrpc.com/connect"
"github.com/alecthomas/assert/v2"
Expand Down
2 changes: 1 addition & 1 deletion internal/modulecontext/module_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/TBD54566975/ftl/internal/log"
. "github.com/TBD54566975/ftl/internal/modulecontext"
. "github.com/TBD54566975/ftl/testutils/modulecontext"
. "github.com/TBD54566975/ftl/internal/testutils/modulecontext"
)

type manualContextSupplier struct {
Expand Down
File renamed without changes.

0 comments on commit 897fe16

Please sign in to comment.