Hi there,
On Sun, 2012-02-12 at 12:45 +0700, Korrawit Pruegsanusak wrote:
So there are some alternatives options to hide something from
callcatcher. [...] write unit tests that call it [...]
Could you please give me a hint how to do this? Thanks :-)
Sure ! :-) so we want to keep:
+ BASEGFX_DLLPUBLIC B2IRange fround(const B2DRange& rRange);
around [sic.] ;-)
The basegfx/CppunitTest makefile points to the code that is used for
unit testing.
I suggest we add a method to test/basegfx2d.cxx that has an equivalent:
CPPUNIT_TEST(rotate);
that does some trivial operation on that method, and checks the
results :-) that will ensure the method is called at least from
somewhere & calm down the unusedcode checker [ we can remove it from the
list then ].
Does that make sense ?
Thanks ! :-)
Michael.
--
michael.meeks@suse.com <><, Pseudo Engineer, itinerant idiot
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.