Skip to content

Commit 32407e3

Browse files
committed
Updated documentation to remove reference to non-existing implementation
1 parent 5e1a803 commit 32407e3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

mocking_manual.markdown

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -269,28 +269,6 @@ After the actual call, the bar parameter passed to function Foo will have the va
269269

270270
* CppUMock _does not_ and _cannot_ prevent invalid memory accesses when using output parameters. It will memcpy exactly the number of bytes specified in the withOutputParameterReturning call. A segmentation fault may occur if this is larger than the data pointed to by the output parameter provided in the actual call.
271271

272-
Function overloads of withOutputParameterReturning are provided for char, int, unsigned, long, unsigned long, and double types so that the size parameter may be omitted:
273-
274-
{% highlight c++ %}
275-
char charOutputValue = 'a';
276-
mock().expectOneCall("Foo").withOutputParameterReturning("bar", &charOutputValue);
277-
278-
int intOutputValue = 4;
279-
mock().expectOneCall("Foo").withOutputParameterReturning("bar", &intOutputValue);
280-
281-
unsigned unsignedOutputValue = 4;
282-
mock().expectOneCall("Foo").withOutputParameterReturning("bar", &unsignedOutputValue);
283-
284-
long longOutputValue = 4;
285-
mock().expectOneCall("Foo").withOutputParameterReturning("bar", &longOutputValue);
286-
287-
unsigned long unsignedLongOutputValue = 4;
288-
mock().expectOneCall("Foo").withOutputParameterReturning("bar", &unsignedLongOutputValue);
289-
290-
double doubleOutputValue = 4;
291-
mock().expectOneCall("Foo").withOutputParameterReturning("bar", &doubleOutputValue);
292-
{% endhighlight %}
293-
294272
*Warning 2:*
295273

296274
* When a char, int, etc. array is passed to withOutputParameter, you must use the generic withOutputParameterReturning and provide the actual size of the array or only one element will be copied.

0 commit comments

Comments
 (0)