summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorccalvarin <ccalvarin@google.com>2018-03-01 07:29:45 -0800
committerIvan Gavrilovic <gavra@google.com>2018-05-04 10:39:13 +0100
commite665bea7c471f64425df2e39db3314f2abe345d3 (patch)
treebabd1b74b1187469c226152ee1abb30e837d11db /test
parentfbc46a6724558ac5cc73feac83b58098bef3da08 (diff)
downloaddesugar-e665bea7c471f64425df2e39db3314f2abe345d3.tar.gz
Fix invocation policy's handling of the null default when filtering values.
For a filter on option values (either by whitelist, allow_values, or blacklist, disallow_values), one of the options for what to do when encountering a disallowed value is to replace it with the default. This default must be itself an allowed value for this to make sense, so this is checked. This check, however, shouldn't apply to flags that are null by default, since these flags' default value is not parsed by the converter, so there is no guarantee that there exists an accepted user-input value that would also set the value to NULL. In these cases, we assume that "unset" is a distinct value that is always allowed. RELNOTES: None. PiperOrigin-RevId: 187475696 GitOrigin-RevId: 06e687495b4c85f86215c7cc7f1a01dc7f6709f9 Change-Id: I1949e180ce32094faf0f46bc7cd627f464ca53f6
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions