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

make matchers printable #126

Open
GoogleCodeExporter opened this issue Apr 2, 2015 · 0 comments
Open

make matchers printable #126

GoogleCodeExporter opened this issue Apr 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

gtest's extensible universal value printer allows us to customize how a value 
of a specific type is printed.  Currently it prints a matcher 
(testing::Matcher<T>) as a hex dump, which isn't useful at all.  We should make 
it print something like

  a matcher that matches a value of type int that is greater than 42

when RTTI is on, or

  a matcher that matches a value that is greater than 42

when RTTI is off.

The "is greater than 42" part is obtained from the matcher's DescribeTo() 
method.

This can be useful for debugging complex matcher expressions, but I don't 
expect it to be needed often.  Hence the low priority.

Original issue reported on code.google.com by w...@google.com on 28 Sep 2010 at 5:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant