From 15d9eed9f44dc3bab0738d33921d2608f3b158b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Tue, 28 Jun 2022 09:52:48 +0200 Subject: [PATCH] More test tweaks: - Fix a test description (cl/324657206) - Add return type to a helper --- protoc_plugin/test/omit_field_names_test.dart | 2 +- protoc_plugin/test/protoc_options_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protoc_plugin/test/omit_field_names_test.dart b/protoc_plugin/test/omit_field_names_test.dart index 7dba8b23a..bcb7645f4 100644 --- a/protoc_plugin/test/omit_field_names_test.dart +++ b/protoc_plugin/test/omit_field_names_test.dart @@ -10,7 +10,7 @@ import '../out/protos/google/protobuf/unittest.pb.dart'; String constant() => 'SHOULD_BE_PRESENT'; Future main() async { - test('enum name available depending on environment', () { + test('field name available depending on environment', () { var proto = TestAllTypes()..optionalForeignMessage = ForeignMessage(); expect( diff --git a/protoc_plugin/test/protoc_options_test.dart b/protoc_plugin/test/protoc_options_test.dart index 6394dccbc..5bd00e324 100644 --- a/protoc_plugin/test/protoc_options_test.dart +++ b/protoc_plugin/test/protoc_options_test.dart @@ -25,7 +25,7 @@ void main() { }); test('testInvalidGeneratorOptions', () { - checkInvalid(String parameter) { + void checkInvalid(String parameter) { var request = CodeGeneratorRequest(); request.parameter = parameter; var response = CodeGeneratorResponse();