Permalink
Browse files

Renamed enum values in simple.thrift and acompanying tests. The enum …

…identifying part (UndefinedValues, DefinedValues, HeterogenrousValues) is being included in the const name by the thrift go generator as of previous commit.

Removed enumsiblings.thrift, as it's already being tested with simple.thrift now.
  • Loading branch information...
1 parent 98bc146 commit fa2cfb63c8209e19553272ab44d043c01aa68a31 GeertJohan committed Nov 18, 2012
@@ -24,7 +24,6 @@ test-exercise-stamp: test-compile-stamp simple_test.go
test-compile-stamp: test-validate-stamp
cd gen-go/simple && go build -v -x .
- cd gen-go/enumsiblings && go build -v -x .
touch $@
test-validate-stamp: test-generation-stamp
@@ -33,7 +32,6 @@ test-validate-stamp: test-generation-stamp
test-generation-stamp:
$(THRIFT) --gen go simple.thrift
- $(THRIFT) --gen go enumsiblings.thrift
touch $@
clean:
@@ -1,12 +0,0 @@
-namespace java thrift4go.generated.enumSiblings
-
-enum AB {
- A,
- B,
-}
-
-enum ABC {
- A,
- B,
- C,
-}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,22 +1,22 @@
namespace java thrift4go.generated
enum UndefinedValues {
- UndefinedOne,
- UndefinedTwo,
- UndefinedThree,
+ One,
+ Two,
+ Three,
}
enum DefinedValues {
- DefinedOne = 1,
- DefinedTwo = 2,
- DefinedThree = 3,
+ One = 1,
+ Two = 2,
+ Three = 3,
}
enum HeterogeneousValues {
- HeterogeneousOne,
- HeterogeneousTwo = 2,
- HeterogeneousThree,
- HeterogeneousFour = 4,
+ One,
+ Two = 2,
+ Three,
+ Four = 4,
}
struct ContainerOfEnums {
@@ -26,9 +26,9 @@ struct ContainerOfEnums {
4: optional UndefinedValues optional_fourth,
5: optional DefinedValues optional_fifth,
6: optional HeterogeneousValues optional_sixth,
- 7: optional UndefinedValues default_seventh = UndefinedValues.UndefinedOne,
- 8: optional DefinedValues default_eighth = DefinedValues.DefinedOne,
- 9: optional HeterogeneousValues default_nineth = HeterogeneousValues.HeterogeneousOne,
+ 7: optional UndefinedValues default_seventh = UndefinedValues.One,
+ 8: optional DefinedValues default_eighth = DefinedValues.One,
+ 9: optional HeterogeneousValues default_nineth = HeterogeneousValues.One,
}
service ContainerOfEnumsTestService {
Oops, something went wrong.

0 comments on commit fa2cfb6

Please sign in to comment.