aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java
diff options
context:
space:
mode:
authorGravatar ccalvarin <ccalvarin@google.com>2017-09-14 15:56:43 +0200
committerGravatar Philipp Wollermann <philwo@google.com>2017-09-14 18:48:16 +0200
commit5fe8e6629e09ce44c6835d1b8f3a36bc3d69f131 (patch)
treedaf3564fe43f6585d3287b6c2f559f2beb7d478b /src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java
parent28d3d2a96e95b2e26e6f864a52177864b0fa8e01 (diff)
Consolidate the "unparsed" option value tracking.
In preparation for linking the parsed and unparsed values of options, consolidate and standardize our representation of the flag values as we received them (what is meant by "unparsed" values in this case). This was being done separately in ParseOptionResult, which, with extra context added, is being folded into UnparsedOptionValueDescription. We now track how an option was provided and where it came from for all option parsing. RELNOTES: None. PiperOrigin-RevId: 168682082
Diffstat (limited to 'src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java')
-rw-r--r--src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java b/src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java
index 2467b83eae..eb1ae0d6a6 100644
--- a/src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java
+++ b/src/test/java/com/google/devtools/common/options/OptionDefinitionTest.java
@@ -114,7 +114,7 @@ public class OptionDefinitionTest {
// Do a bunch of potentially repeat operations on this option that need to know information
// about the converter and default value. Also verify that the values are as expected.
- boolean isBoolean = mockOptionDef.isBooleanField();
+ boolean isBoolean = mockOptionDef.usesBooleanValueSyntax();
assertThat(isBoolean).isFalse();
Converter<?> converter = mockOptionDef.getConverter();
@@ -150,7 +150,7 @@ public class OptionDefinitionTest {
// Do a bunch of potentially repeat operations on this option that need to know information
// about the converter and default value. Also verify that the values are as expected.
- boolean isBoolean = mockOptionDef.isBooleanField();
+ boolean isBoolean = mockOptionDef.usesBooleanValueSyntax();
assertThat(isBoolean).isFalse();
Converter<?> converter = mockOptionDef.getConverter();