blob: e8eb9a38e2c8a0a604b4930e0953d9d2a3310512 [file] [log] [blame]
David Reiss2a4bfd62008-04-07 23:45:00 +00001namespace cpp thrift.test.debug
David Reiss3b15ebc2008-03-02 06:29:19 +00002namespace java thrift.test
David Reiss00dcccf2007-07-21 01:18:10 +00003
David Reissdb0ea152008-02-18 01:49:37 +00004struct Doubles {
5 1: double nan,
6 2: double inf,
7 3: double neginf,
8 4: double repeating,
9 5: double big,
10 6: double small,
11 7: double zero,
12 8: double negzero,
13}
14
David Reiss00dcccf2007-07-21 01:18:10 +000015struct OneOfEach {
16 1: bool im_true,
17 2: bool im_false,
David Reissa8efac82008-12-16 20:28:13 +000018 3: byte a_bite = 200,
19 4: i16 integer16 = 33000,
David Reiss00dcccf2007-07-21 01:18:10 +000020 5: i32 integer32,
David Reissa8efac82008-12-16 20:28:13 +000021 6: i64 integer64 = 10000000000,
David Reiss00dcccf2007-07-21 01:18:10 +000022 7: double double_precision,
23 8: string some_characters,
24 9: string zomg_unicode,
25 10: bool what_who,
David Reissdb0ea152008-02-18 01:49:37 +000026 11: binary base64,
David Reissa8efac82008-12-16 20:28:13 +000027 12: list<byte> byte_list = [1, 2, 3],
28 13: list<i16> i16_list = [1,2,3],
29 14: list<i64> i64_list = [1,2,3]
David Reiss00dcccf2007-07-21 01:18:10 +000030}
31
32struct Bonk {
33 1: i32 type,
34 2: string message,
35}
36
37struct Nesting {
38 1: Bonk my_bonk,
39 2: OneOfEach my_ooe,
40}
41
42struct HolyMoley {
43 1: list<OneOfEach> big,
44 2: set<list<string>> contain,
45 3: map<string,list<Bonk>> bonks,
46}
David Reiss382fc302007-08-25 18:01:30 +000047
48struct Backwards {
49 2: i32 first_tag2,
50 1: i32 second_tag1,
51}
52
53struct Empty {
54}
55
56struct Wrapper {
57 1: Empty foo
58}
59
60struct RandomStuff {
61 1: i32 a,
62 2: i32 b,
63 3: i32 c,
64 4: i32 d,
65 5: list<i32> myintlist,
66 6: map<i32,Wrapper> maps,
67 7: i64 bigint,
68 8: double triple,
69}
70
David Reiss4a8f46c2008-03-07 20:12:07 +000071struct Base64 {
72 1: i32 a,
73 2: binary b1,
74 3: binary b2,
75 4: binary b3,
76 5: binary b4,
77 6: binary b5,
78 7: binary b6,
79}
80
David Reiss382fc302007-08-25 18:01:30 +000081service Srv {
82 i32 Janky(i32 arg)
83}
David Reiss23753122007-08-27 19:57:34 +000084
85service PartiallyReflectable {
86 map<i32,map<i32,i32>> returnNotReflectable(1: i32 hello),
87 void argNotReflectable(1: list<set<i32>> arg),
88 void arg2NotReflectable(1: i32 arg1, 2: list<set<i32>> argNotReflectable),
89 void withMap(1: map<i32, string> amap),
90
91 OneOfEach refl1(1: list<Bonk> arg1),
92 OneOfEach refl2(2: list<string> arg1, 1: Bonk arg2);
93}
David Reissfaebedd2007-09-17 23:20:38 +000094
95// The only purpose of this thing is to increase the size of the generated code
96// so that ZlibTest has more highly compressible data to play with.
97struct BlowUp {
98 1: map<list<i32>,set<map<i32,string>>> b1;
99 2: map<list<i32>,set<map<i32,string>>> b2;
100 3: map<list<i32>,set<map<i32,string>>> b3;
101 4: map<list<i32>,set<map<i32,string>>> b4;
102}