Explicitly state the default options categories for options used in blaze testing. Unlike in the production flags, these flags are only used for internal testing. Tagged them as NO_OP instead of the default UNKNOWN to make it clear that we do not need these to become properly tagged. PiperOrigin-RevId: 160526472
diff --git a/src/test/java/com/google/devtools/common/options/BoolOrEnumConverterTest.java b/src/test/java/com/google/devtools/common/options/BoolOrEnumConverterTest.java index 54a173f..3f0403a 100644 --- a/src/test/java/com/google/devtools/common/options/BoolOrEnumConverterTest.java +++ b/src/test/java/com/google/devtools/common/options/BoolOrEnumConverterTest.java
@@ -18,6 +18,7 @@ import static com.google.devtools.common.options.OptionsParser.newOptionsParser; import static org.junit.Assert.fail; +import com.google.devtools.common.options.proto.OptionFilters.OptionEffectTag; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -45,9 +46,13 @@ * The test options for the CompilationMode hybrid converter. */ public static class CompilationModeTestOptions extends OptionsBase { - @Option(name = "compile_mode", - converter = CompilationModeConverter.class, - defaultValue = "dbg") + @Option( + name = "compile_mode", + converter = CompilationModeConverter.class, + documentationCategory = OptionDocumentationCategory.UNCATEGORIZED, + effectTags = {OptionEffectTag.NO_OP}, + defaultValue = "dbg" + ) public CompilationMode compileMode; }