| 171 | } |
| 172 | |
| 173 | static void test_options(void) |
| 174 | { |
| 175 | TestProto proto; |
| 176 | const auto* descriptor = proto.descriptor(); |
| 177 | const auto* field = descriptor->FindFieldByName("i64"); |
| 178 | const auto& options = field->options(); |
| 179 | const std::string s = options.GetExtension(help); |
| 180 | AssertThat(s, Equals("i64")); |
| 181 | } |
| 182 | |
| 183 | static void test_findallfields(void) |
| 184 | { |