Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting inconsistencies for array values in MockException.Message #380

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Jun 18, 2017

This fixes #321.

Two inconsistencies have been reported in how arrays and arrays containing null references are reported in the "expected invocation" and "performed invocations" part of a MockException message:

  1. In "expected invocation", arrays are completely omitted in the message.

  2. In "performed invocations", null references are omitted in an array value dump.

This commit fixes both issues, and additionally ensures that in case of non-terminating or long sequences, only the first 10 elements are printed and the rest gets abbreviated as ", ...".

@stakx stakx changed the title Fix inconsistencies in MockEx msg array formatting Fix formatting inconsistencies for array values in MockException.Message Jun 18, 2017
@stakx stakx force-pushed the missing-nulls-in-exception-message branch 2 times, most recently from 38adaa3 to 63b4a34 Compare June 19, 2017 20:16
Two inconsistencies have been reported in how arrays and arrays con-
taining null references are reported in the "expected invocation" and
"performed invocations" part of a `MockException` message:

 1. In "expected invocation", arrays are completely omitted in the
    message.

 2. In "performed invocations", null references are omitted in an
    array value dump.

This commit fixes both issues, and additionally ensures that in case
of non-terminating or long sequences, only the first 10 elements are
printed and the rest gets abbreviated as ", ...".
@stakx stakx force-pushed the missing-nulls-in-exception-message branch from 63b4a34 to 71ed2e3 Compare June 20, 2017 21:51
@stakx stakx merged commit 07363b4 into devlooped:develop Jun 20, 2017
@stakx stakx deleted the missing-nulls-in-exception-message branch June 20, 2017 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant