[openbeosstorage] Re: BSymLink tests and check_*_name() added

On Mon, 22 Apr 2002, Tyler Dauwalder wrote:

> Yes, I would like to get the core classes polished up to the same degree
> as all the classes you've worked on so far. Here's what I think remains:

[...]

> BStatable needs the doxygen pulled into the source file. I don't recall 
> how much testing was done on it (Mike?).

Mmh, I hope, noone minds, if I take this class over as well. At least the
tests are pretty incomplete, currently unused and due to typos wouldn't
even compile.

BTW, I have an idea for reuse of base class tests, which is rather simple:
The test class hierarchy follows the hierarchy of the tested classes and
the tests in question do not create objects of the base class, but instead 
let objects be created by virtual functions.
The derived test classes just need to add the base class tests (or let
them be added by a base class method) and override the virtual functions.
Ehh, that's all... as promised, simple.

Thus the test classes hierarchy will look like this:

StatableTest
+ NodeTest
  + DirectoryTest
  + FileTest
  + SymLinkTest
(+ EntryTest)

Tyler, I won't touch EntryTest, as I don't want to steal your work. ;-)
... at least not until I'm done with the forementioned and you force me to
do so. ;-)

Exceptionally it looks like I will have quite some time tomorrow, so I'm
looking forward to get things done very soon. :-)

CU, Ingo


Other related posts: