summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-10-04 11:24:48 +0100
committer Paul Duffin <paulduffin@google.com> 2021-10-04 12:56:10 +0100
commit3866b89d157d32f1ad3ad5dab2ffa2b04bc93927 (patch)
tree87517e0672d69da7597816a24378a74396683012 /sdk/sdk_test.go
parent8bb9c6a1d9cdb40a2a7bb7ffa43cc02173ac07c0 (diff)
Make RuleBuilder fail fast when passed a nil Path
Previously, the RuleBuilder would add all supplied Paths directly to one of its lists of Paths without checking to make sure it was not nil only to panic somewhere in its Build() method when it attempted to convert it to a string. Deferring the failure made it harder to debug. This change fails fast by checking every Path when it is passed to the RuleBuilder. Test: m nothing Change-Id: I06b35da02101f6dfab80d2daaf3d8e44ded8b6be
Diffstat (limited to 'sdk/sdk_test.go')
0 files changed, 0 insertions, 0 deletions