Boost logo

Boost :

Subject: Re: [boost] Boost.Test updates in trunk: need for (mini) review?
From: Gennadiy Rozenal (rogeeff_at_[hidden])
Date: 2012-11-04 04:57:53

Thorsten Ottosen <thorsten.ottosen <at>> writes:

> Another issue. It would be cool to be able to give access to private
> members in the unit test. So given
> {
> ...
> }
> 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


Boost list run by bdawes at, gregod at, cpdaniel at, john at