Software APIs
Functions | Variables
status_unittest::anonymous_namespace{status_unittest.cc} Namespace Reference

Functions

 TEST (Status, OkValues)
 
 TEST (Status, ErrorValues)
 
 TEST (Status, ErrorValuesInModule)
 
 TEST (Status, OkIsHardenedTrue)
 
int HammingDistance (int32_t a, int32_t b)
 
 TEST (Status, TopLevelStatusHammingDistance)
 
 TEST (Status, OkIsNonHardenedOk)
 
 TEST (Status, ErrorMacrosNotOk)
 
 TEST (Status, ErrorMacrosHaveExpectedValues)
 
 __attribute__ ((noinline)) status_t do_hardened_try(status_t status)
 
 TEST (Status, HardenedTryOfNonHardenedOkIsError)
 
 TEST (Status, HardenedTryOfHardenedOkIsOk)
 
 TEST (Status, HardenedTryOfErrorIsError)
 
 TEST (Status, HardenedTryOfErrorWithTruthyArgIsError)
 
 TEST (Status, TryInterpretOk)
 
 TEST (Status, TryInterpretNonHardenedOk)
 
 TEST (Status, TryInterpretErrors)
 

Variables

constexpr int kMinimumHammingDistance = 5