summaryrefslogtreecommitdiff
path: root/tests/test.proto
blob: b51bd6b2b326a7d9b07435b2f2a443247be53544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

// A series of messages with various kinds of cycles in them.
//      +-+---+    +---+
//      V |   |    |   |
// A -> B-+-> C -> D<--+
// ^          |    |
// +----------+----+
//
// This tests the following cases:
//  - B and C are together in multiple cycles
//  - B and D are cycles to themselves.

message A {
  optional B b = 1;
}

message B {
  optional B b = 1;
  optional C c = 2;
}

message C {
  optional A a = 1;
  optional B b = 2;
  optional D d = 3;
}

message D {
  optional A a = 1;
  optional D d = 2;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback