public final class ProtocPluginTesting extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MAVEN_DUMP_PATH |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse |
test(Generator generator,
String dumpPath)
Debug a single generator using the parsed proto descriptor.
|
static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse |
test(List<Generator> generators,
List<com.google.protobuf.GeneratedMessage.GeneratedExtension> extensions,
String dumpPath)
Test multiple generators using the parsed proto descriptor, aggregating their results.
|
static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse |
test(List<Generator> generators,
String dumpPath)
Debug multiple generators using the parsed proto descriptor, aggregating their results.
|
public static final String MAVEN_DUMP_PATH
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse test(@Nonnull Generator generator, @Nonnull String dumpPath) throws IOException
generator - The generator to run.dumpPath - The path to a descriptor dump on the filesystem.IOExceptionpublic static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse test(@Nonnull List<Generator> generators, @Nonnull String dumpPath) throws IOException
generators - The list of generators to run.dumpPath - The path to a descriptor dump on the filesystem.IOExceptionpublic static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse test(@Nonnull List<Generator> generators, List<com.google.protobuf.GeneratedMessage.GeneratedExtension> extensions, @Nonnull String dumpPath) throws IOException
generators - The list of generators to run.extensions - The list of extensions to register.dumpPath - The path to a descriptor dump on the filesystem.IOExceptionCopyright © 2023. All rights reserved.