Catch2 icon indicating copy to clipboard operation
Catch2 copied to clipboard

Stringification of big ranges

Open AlexandreBossard opened this issue 4 years ago • 0 comments

I happen to have a CHECK(buffer1 == expectedbuffer), with each buffers being whopping a 5MB.

When you use the -s switch, catch2 is happy to print all of it, really really slowly.

Expected behavior I would have expect the stringification of ranges to have some kind of limit. Both for performance and readability reason.

workaround

  • Specialize StringMaker to do it, but this cumbersome, particularly with ODR.

  • Use a hashed value of the buffer in the CHECK expression. Not pratical when you have lots of them.

AlexandreBossard avatar Jan 26 '22 17:01 AlexandreBossard