Boost logo

Boost :

Subject: Re: [boost] Boost.Test updates in trunk: need for (mini) review?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2012-11-05 04:45:50


On 04-11-2012 10:57, Gennadiy Rozenal wrote:
> Thorsten Ottosen <thorsten.ottosen <at> dezide.com> writes:
>
>> Another issue. It would be cool to be able to give access to private
>> members in the unit test. So given
>>
>> BOOST_AUTO_TEST_CASE( testMyClass )
>> {
>> ...
>> }
>>
>> I would be able to test private functions with:
>>
>> class MyClass
>> {
>> friend void boost::test::testMyClass();
>> // or
>> friend class boost::test::access;
>> };
>
> I believe you can just name struct testMyClass a friend of MyClass and that's it.
> If your test case is within a test suite you'll name to mention it as well
> test_suite::test_case_name.
>

Ok. Great.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk