Skip to content

Commit

Permalink
Move testhelpers out of internal.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 633605426
  • Loading branch information
suyashkumar authored and copybara-github committed May 14, 2024
1 parent b357707 commit deb247d
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bulkfhir/transactiontime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"
)

func TestInMemoryTransactionTimeStore(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bulk_fhir_fetch/bulk_fhir_fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
"github.com/google/bulk_fhir_tools/gcs"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"

"flag"

Expand Down
2 changes: 1 addition & 1 deletion fhir/processing/bcdarectify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
2 changes: 1 addition & 1 deletion fhir/processing/documents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
2 changes: 1 addition & 1 deletion fhir/processing/fhirstoresink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/fhirstore"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
2 changes: 1 addition & 1 deletion fhir/processing/ndjsonsink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
rpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/resources/bundle_and_contained_resource_go_proto"
Expand Down
2 changes: 1 addition & 1 deletion fhir/rectify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/bulk_fhir_tools/fhir"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"
)

func TestRectifyBCDA(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion fhirstore/fhirstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/bulk_fhir_tools/fhirstore"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
2 changes: 1 addition & 1 deletion gcs/gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"io"
"testing"

"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"
)

func TestGCSIsBucketInProjectId(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/logger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"google.golang.org/api/option"
"google.golang.org/grpc"
"github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"
)

func TestGCPLogger(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"google.golang.org/api/option"
"google.golang.org/grpc"
"github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/testhelpers"
)

// TestFallbackGCPLoggerAfterClose tests a fallback behavior if the user mistakenly makes logging
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit deb247d

Please sign in to comment.