Lines Matching refs:NSString
68 NSString *STComposeString(NSString *, ...) NS_FORMAT_FUNCTION(1, 2);
70 NSString *STComposeString(NSString *, ...);
90 NSString *_expression = [NSString stringWithFormat:@"Expected noErr, got %ld for (%s)", (long)a1value, #a1]; \
93 inFile:[NSString stringWithUTF8String:__FILE__] \
99 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == noErr fails", #a1] \
101 inFile:[NSString stringWithUTF8String:__FILE__] \
120 NSString *_expression = [NSString stringWithFormat:@"Expected %s(%ld) but got %ld for (%s)", #a2, (long)a2value, (long)a1value, #a1]; \
123 inFile:[NSString stringWithUTF8String:__FILE__] \
129 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s) fails", #a1, #a2] \
131 inFile:[NSString stringWithUTF8String:__FILE__] \
149 NSString *_expression = [NSString stringWithFormat:@"((%s) != NULL)", #a1]; \
152 inFile:[NSString stringWithUTF8String:__FILE__] \
158 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) != NULL fails", #a1] \
160 inFile:[NSString stringWithUTF8String:__FILE__] \
177 NSString *_expression = [NSString stringWithFormat:@"((%s) == NULL)", #a1]; \
180 inFile:[NSString stringWithUTF8String:__FILE__] \
186 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == NULL fails", #a1] \
188 inFile:[NSString stringWithUTF8String:__FILE__] \
206 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
215 NSString *_expression = [NSString stringWithFormat:@"((%s) != (%s))", #a1, #a2]; \
218 inFile:[NSString stringWithUTF8String:__FILE__] \
225 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) != (%s)", #a1, #a2] \
227 inFile:[NSString stringWithUTF8String:__FILE__] \
250 inFile:[NSString stringWithUTF8String:__FILE__] \
255 [self failWithException:([NSException failureInRaise:[NSString stringWithFormat:@"(%s) != (%s)", #a1, #a2] \
257 inFile:[NSString stringWithUTF8String:__FILE__] \
275 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
284 NSString *_expression = [NSString stringWithFormat:@"(%s (%lg) %s %s (%lg))", #a1, a1DoubleValue, #op, #a2, a2DoubleValue]; \
287 inFile:[NSString stringWithUTF8String:__FILE__] \
295 failureInRaise:[NSString stringWithFormat:@"(%s) %s (%s)", #a1, #op, #a2] \
297 inFile:[NSString stringWithUTF8String:__FILE__] \
364 if ([a1value isKindOfClass:[NSString class]] && \
365 [a2value isKindOfClass:[NSString class]] && \
369 inFile:[NSString stringWithUTF8String:__FILE__] \
374 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s)", #a1, #a2] \
376 inFile:[NSString stringWithUTF8String:__FILE__] \
398 if ([a1value isKindOfClass:[NSString class]] && \
399 [a2value isKindOfClass:[NSString class]] && \
403 inFile:[NSString stringWithUTF8String:__FILE__] \
408 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) != (%s)", #a1, #a2] \
410 inFile:[NSString stringWithUTF8String:__FILE__] \
430 [self failWithException:[NSException failureInEqualityBetweenObject:[NSString stringWithUTF8String:a1value] \
431 andObject:[NSString stringWithUTF8String:a2value] \
432 inFile:[NSString stringWithUTF8String:__FILE__] \
437 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s)", #a1, #a2] \
439 inFile:[NSString stringWithUTF8String:__FILE__] \
458 [self failWithException:[NSException failureInEqualityBetweenObject:[NSString stringWithUTF8String:a1value] \
459 andObject:[NSString stringWithUTF8String:a2value] \
460 inFile:[NSString stringWithUTF8String:__FILE__] \
465 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) != (%s)", #a1, #a2] \
467 inFile:[NSString stringWithUTF8String:__FILE__] \
491 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
505 NSString *string; \
507 string = [NSString stringWithFormat:@"(%0.3f == %0.3f)", a1FloatValue[j], a2FloatValue[j]]; \
511 NSString *desc = STComposeString(description, ##__VA_ARGS__); \
512 desc = [NSString stringWithFormat:@"%@ With Accuracy %0.3f: %@", string, (float)accuracyvalue, desc]; \
513 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
522 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s)", #a1, #a2] \
524 inFile:[NSString stringWithUTF8String:__FILE__] \
562 inFile:[NSString stringWithUTF8String:__FILE__] \
567 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s)", #a1, #a2] \
569 inFile:[NSString stringWithUTF8String:__FILE__] \
588 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
600 inFile:[NSString stringWithUTF8String:__FILE__] \
607 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s)", #a1, #a2] \
609 inFile:[NSString stringWithUTF8String:__FILE__] \
634 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
648 inFile:[NSString stringWithUTF8String:__FILE__] \
655 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == (%s)", #a1, #a2] \
657 inFile:[NSString stringWithUTF8String:__FILE__] \
671 [self failWithException:[NSException failureInFile:[NSString stringWithUTF8String:__FILE__] \
688 NSString *_a1 = [NSString stringWithUTF8String:#a1]; \
689 NSString *_expression = [NSString stringWithFormat:@"((%@) == nil)", _a1]; \
692 inFile:[NSString stringWithUTF8String:__FILE__] \
698 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) == nil fails", #a1] \
700 inFile:[NSString stringWithUTF8String:__FILE__] \
718 NSString *_a1 = [NSString stringWithUTF8String:#a1]; \
719 NSString *_expression = [NSString stringWithFormat:@"((%@) != nil)", _a1]; \
722 inFile:[NSString stringWithUTF8String:__FILE__] \
728 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) != nil fails", #a1] \
730 inFile:[NSString stringWithUTF8String:__FILE__] \
747 NSString *_expression = [NSString stringWithUTF8String:#expr]; \
750 inFile:[NSString stringWithUTF8String:__FILE__] \
769 NSString *_expression = [NSString stringWithUTF8String:#expr]; \
772 inFile:[NSString stringWithUTF8String:__FILE__] \
778 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"(%s) ", #expr] \
780 inFile:[NSString stringWithUTF8String:__FILE__] \
797 NSString *_expression = [NSString stringWithUTF8String:#expr]; \
800 inFile:[NSString stringWithUTF8String:__FILE__] \
819 NSString *_expression = [NSString stringWithUTF8String:#expr]; \
822 inFile:[NSString stringWithUTF8String:__FILE__] \
828 [self failWithException:[NSException failureInRaise:[NSString stringWithFormat:@"!(%s) ", #expr] \
830 inFile:[NSString stringWithUTF8String:__FILE__] \
851 [self failWithException:[NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
853 inFile:[NSString stringWithUTF8String:__FILE__] \
876 NSString *_descrip = STComposeString(@"(Expected exception: %@) %@", NSStringFromClass([specificException class]), description); \
877 [self failWithException:[NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
879 inFile:[NSString stringWithUTF8String:__FILE__] \
884 NSString *_descrip = STComposeString(@"(Expected exception: %@) %@", NSStringFromClass([specificException class]), description); \
885 [self failWithException:[NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
887 inFile:[NSString stringWithUTF8String:__FILE__] \
912 NSString *_descrip = STComposeString(@"(Expected exception: %@ (name: %@)) %@", NSStringFromClass([specificException class]), aName, description); \
914 [NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
916 inFile:[NSString stringWithUTF8String:__FILE__] \
922 NSString *_descrip = STComposeString(@"(Expected exception: %@) %@", NSStringFromClass([specificException class]), description); \
924 [NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
926 inFile:[NSString stringWithUTF8String:__FILE__] \
931 NSString *_descrip = STComposeString(@"(Expected exception: %@) %@", NSStringFromClass([specificException class]), description); \
933 [NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
935 inFile:[NSString stringWithUTF8String:__FILE__] \
953 [self failWithException:[NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
955 inFile:[NSString stringWithUTF8String:__FILE__] \
976 [self failWithException:[NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
978 inFile:[NSString stringWithUTF8String:__FILE__] \
1007 NSString *_descrip = STComposeString(@"(Expected exception: %@ (name: %@)) %@", NSStringFromClass([specificException class]), aName, description); \
1009 [NSException failureInRaise:[NSString stringWithUTF8String:#expr] \
1011 inFile:[NSString stringWithUTF8String:__FILE__] \
1025 + (NSException *)failureInFile:(NSString *)filename
1027 withDescription:(NSString *)formatString, ... NS_FORMAT_FUNCTION(3, 4);
1028 + (NSException *)failureInCondition:(NSString *)condition
1030 inFile:(NSString *)filename
1032 withDescription:(NSString *)formatString, ... NS_FORMAT_FUNCTION(5, 6);
1035 inFile:(NSString *)filename
1037 withDescription:(NSString *)formatString, ... NS_FORMAT_FUNCTION(5, 6);
1041 inFile:(NSString *)filename
1043 withDescription:(NSString *)formatString, ... NS_FORMAT_FUNCTION(6, 7);
1044 + (NSException *)failureInRaise:(NSString *)expression
1045 inFile:(NSString *)filename
1047 withDescription:(NSString *)formatString, ... NS_FORMAT_FUNCTION(4, 5);
1048 + (NSException *)failureInRaise:(NSString *)expression
1050 inFile:(NSString *)filename
1052 withDescription:(NSString *)formatString, ... NS_FORMAT_FUNCTION(5, 6);
1076 GTM_EXTERN NSString *const SenTestFailureException;
1078 GTM_EXTERN NSString *const SenTestFilenameKey;
1079 GTM_EXTERN NSString *const SenTestLineNumberKey;