slogcxx-test.cpp File Reference

Testing routines for slogcxx (slog-icks). More...

#include <iostream>
#include <string>
#include <cstdlib>
#include <slogcxx.h>

Classes

class  whereClassTest
 Simple test to see what happens. More...

Defines

#define FAILED_HERE   std::cerr << __FILE__ << ":" << __LINE__ << ": error: failed in function " << __FUNCTION__<< std::endl;
 Use 'FAILED_HERE;' to emit a string that looks like a compiler warning Use this to allow emacs to jump to this source line with either emacs command: C-x ` or F2.

Functions

bool testFile ()
 test writing to a file without and with xml
bool testFileXml ()
 Try out writing to a file in xml mode with one LogState.
bool testHeavyScope ()
 Try out a couple scopes.
bool testHeavyScopeNoXml ()
 Try out many scopes without xml. Should still indent.
bool testScope ()
 Make a ton of scopes and leave them without closing. Generates a runtime warning.
bool testScopeWithMsgLvl ()
 Go crazy with scoping and use incl/decl and incMsg;.
bool testBig ()
 One large test that does logs of stuff with dec/inc, etc.
bool testSimple ()
 This is about as simple a test as can be made.
bool testTypes ()
 Test out all the types available.
bool testWhere ()
 Try out the where and WHERE calls.
bool testPointer ()
int main (UNUSED int argc, UNUSED char *argv[])
 This is bone head unit testing.


Detailed Description

Testing routines for slogcxx (slog-icks).

Copyright (c) 2006 Kurt Schwehr Data Visualization Research Lab, Center for Coastal and Ocean Mapping University of New Hampshire. http://ccom.unh.edu

Todo:
convert asserts to tests that call FAILED_HERE and return false

Generated on Tue Aug 15 10:09:38 2006 by  doxygen 1.4.6