NMBStringify.h 755 B

123456789101112131415161718
  1. @class NSString;
  2. /**
  3. * Returns a string appropriate for displaying in test output
  4. * from the provided value.
  5. *
  6. * @param anyObject A value that will show up in a test's output.
  7. *
  8. * @return The string that is returned can be
  9. * customized per type by conforming a type to the `TestOutputStringConvertible`
  10. * protocol. When stringifying a non-`TestOutputStringConvertible` type, this
  11. * function will return the value's debug description and then its
  12. * normal description if available and in that order. Otherwise it
  13. * will return the result of constructing a string from the value.
  14. *
  15. * @see `TestOutputStringConvertible`
  16. */
  17. extern NSString *_Nonnull NMBStringify(id _Nullable anyObject) __attribute__((warn_unused_result));