Skip to content

Commit

Permalink
chore: make testpb internal
Browse files Browse the repository at this point in the history
Updates cosmos#37
  • Loading branch information
elias-orijtech committed Mar 23, 2023
1 parent 8cfa066 commit 858c748
Show file tree
Hide file tree
Showing 25 changed files with 147 additions and 144 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DIRECTORIES_TO_BUILD := "./testpb ./internal/testprotos/test3"
DIRECTORIES_TO_BUILD := "./internal/testpb ./internal/testprotos/test3"

pulsar:
docker build -t dev:proto-build -f Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion anyutil/any_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"google.golang.org/protobuf/types/known/anypb"

"github.com/cosmos/cosmos-proto/anyutil"
"github.com/cosmos/cosmos-proto/testpb"
"github.com/cosmos/cosmos-proto/internal/testpb"
)

func TestAny(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions testpb/1.proto → internal/testpb/1.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
syntax="proto3";

import "testpb/2.proto";
import "internal/testpb/2.proto";

option go_package = "github.com/cosmos/cosmos-proto/testpb";
option go_package = "github.com/cosmos/cosmos-proto/internal/testpb";

enum Enumeration {
One = 0;
Expand Down
198 changes: 100 additions & 98 deletions testpb/1.pulsar.go → internal/testpb/1.pulsar.go

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions internal/testpb/2.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
syntax="proto3";
option go_package = "github.com/cosmos/cosmos-proto/internal/testpb";

message ImportedMessage {

}
71 changes: 36 additions & 35 deletions testpb/2.pulsar.go → internal/testpb/2.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion rapidproto/rapidproto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"gotest.tools/v3/golden"
"pgregory.net/rapid"

"github.com/cosmos/cosmos-proto/internal/testpb"
"github.com/cosmos/cosmos-proto/rapidproto"
"github.com/cosmos/cosmos-proto/testpb"
)

// TestRegression checks that the generator still produces the same output
Expand Down
6 changes: 0 additions & 6 deletions testpb/2.proto

This file was deleted.

0 comments on commit 858c748

Please sign in to comment.