summaryrefslogtreecommitdiff
path: root/code_coverage/Android.bp
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2020-02-06 02:51:42 +0900
committerBernie Innocenti <codewiz@google.com>2020-02-06 15:27:26 +0900
commit715b26a07c06698505f7cfe8b528da47f61bddfb (patch)
tree6a776cff512ad10b9a7c308295ba06b27d452df4 /code_coverage/Android.bp
parentbe7bae6233fa9c0e77a11021861db40cc3c4eb78 (diff)
Add macros to check for successful Result
These macros are meant to be used in tests: Result<File> maybe_a_file = OpenFile(...); EXPECT_OK(maybe_a_file); On failure, the error is printed. There's no equivalent EXPECT_NOT_OK() because it is a testing anti-pattern which causes tests to pass even when the error changed as a result of a regression. Use EPECT_EQ(result, Error(...)) instead. Test: cd system/core && atest Test: m Change-Id: Ie26f90d3c62620e7b1f10013829ba43ef5364fe1
Diffstat (limited to 'code_coverage/Android.bp')
0 files changed, 0 insertions, 0 deletions