Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Source/Extensions/NSInvocation+Cedar.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ - (NSArray *)arguments {
[self getArgument:argBuffer atIndex:argIndex];

const char *argType = [methodSignature getArgumentTypeAtIndex:argIndex];
[args addObject:[CDRTypeUtilities boxedObjectOfBytes:argBuffer ofObjCType:argType]];
[args addObject:[NSString stringWithFormat:@"%@(%@)",
[CDRTypeUtilities boxedObjectOfBytes:argBuffer ofObjCType:argType],
[CDRTypeUtilities typeNameForEncoding:argType]]];
}
return args;
}
Expand Down
10 changes: 8 additions & 2 deletions Source/Headers/Doubles/HaveReceived.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#import "InvocationMatcher.h"
#import "CedarDouble.h"
#import "NSInvocation+Cedar.h"
#import "CDRTypeUtilities.h"

namespace Cedar { namespace Doubles {

Expand Down Expand Up @@ -119,9 +120,14 @@ namespace Cedar { namespace Doubles {
if (this->arguments().size()) {
[message appendString:@", with arguments: <"];
arguments_vector_t::const_iterator cit = this->arguments().begin();
[message appendString:(*cit++)->value_string()];
[message appendString:[NSString stringWithFormat:@"%@(%@)",
(*cit)->value_string(),
[CDRTypeUtilities typeNameForEncoding:(*cit)->value_encoding()]]];
++cit;
for (; cit != this->arguments().end(); ++cit) {
[message appendString:[NSString stringWithFormat:@", %@", (*cit)->value_string()]];
[message appendString:[NSString stringWithFormat:@", %@(%@)",
(*cit)->value_string(),
[CDRTypeUtilities typeNameForEncoding:(*cit)->value_encoding()]]];
}
[message appendString:@">"];
NSArray *recordedInvocations = [(id<CedarDouble>)value sent_messages];
Expand Down
Loading