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
Differ Enhancement #2177
Differ Enhancement #2177
Conversation
…d in Prettifier to prettify element in the diff result.
…t size of prettifier when available.
…t size of prettifier when available.
…t size of prettifier when available.
|
||
val shortName = Differ.simpleClassName(aSet) | ||
println("####shortName: " + shortName + ", ") | ||
if (missingInLeft.isEmpty && missingInRight.isEmpty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to remove this println?
prettifier match { | ||
case tp: TruncatingPrettifier => tp.sizeLimit.value | ||
case _ => math.max(aMap.size, bMap.size) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This match seems to be repeated 3 times. Perhaps factor out into a method?
@bvenners Thanks for reviewing, I have made the adjustments can you see if it is fit now? Thanks! |
Enhanced GenSeqDiffer, GenSetDiffer and GenMapDiffer to support find diff elements according to limit size of prettifier when available.