UnitTest Class Reference

#include <unittest.h>

List of all members.

Public Member Functions

void register_test_functions (TestFunc *testfunc)
bool test ()
void print_header (void *stream, const char *tag)


Detailed Description

Definition at line 46 of file unittest.h.


Member Function Documentation

void UnitTest::register_test_functions ( TestFunc testfunc  ) 

Definition at line 43 of file unittest.cpp.

bool UnitTest::test (  ) 

Perform all of the unit testing specified in a table.

Parameters:
TestFunc * an array of test functions that are invoked sequentially from the calling function.
Returns:
int TRUE if everything passes the unit test, false if any function fails its unit test.

Definition at line 55 of file unittest.cpp.

References print_header().

void UnitTest::print_header ( void *  stream,
const char *  tag 
)

A very simple unit testing class.

Author:
David M. Doolin.
Copyright (C) 2002, 2003 David M. Doolin

This file is part of Geotechnica.

Geotechnica is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

Geotechnica is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Geotechnica; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition at line 33 of file unittest.cpp.

References FILE.

Referenced by test().


The documentation for this class was generated from the following files:

Generated on Mon Oct 23 15:05:51 2006 for OpenSees by doxygen 1.5.0