aboutsummaryrefslogtreecommitdiff
path: root/src/unitsuite.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-25 17:45:03 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-25 17:45:03 +0000
commit24ab24777d7cd72b7ff35a9d02cb43e26f006b0d (patch)
tree09b1e2e72e05ff6e7502f02edb6d3fc6100cc741 /src/unitsuite.h
parentb4e1fa15d0c809439139db3a60a3969d848dcf77 (diff)
downloadlibbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.tar.gz
libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.tar.bz2
libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.tar.xz
libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.zip
More myriad testing, fixes, arrangement, etc. UnitSuite add-ons, it has some
command line parameters now, I would like to also add an automatic paramter that would switch it to a computer-readable output mode for use in a larger testing framework.
Diffstat (limited to 'src/unitsuite.h')
-rw-r--r--src/unitsuite.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/unitsuite.h b/src/unitsuite.h
index 74aac6f..ddd3835 100644
--- a/src/unitsuite.h
+++ b/src/unitsuite.h
@@ -10,8 +10,9 @@
10 10
11#include <stdint.h> 11#include <stdint.h>
12#include "bu/list.h" 12#include "bu/list.h"
13#include "fstring.h" 13#include "bu/fstring.h"
14#include "bu/file.h" 14#include "bu/file.h"
15#include "bu/array.h"
15 16
16namespace Bu 17namespace Bu
17{ 18{
@@ -96,6 +97,9 @@ namespace Bu
96 void setName( const FString &sName ); 97 void setName( const FString &sName );
97 98
98 private: 99 private:
100 int onListCases( Bu::Array<Bu::FString> aParam );
101
102 private:
99 typedef struct TestInfo 103 typedef struct TestInfo
100 { 104 {
101 FString sName; 105 FString sName;
@@ -113,6 +117,8 @@ namespace Bu
113 StrList lFileCleanup; 117 StrList lFileCleanup;
114 int iNameWidth; 118 int iNameWidth;
115 }; 119 };
120
121Bu::Formatter &operator<<( Bu::Formatter &f, const Bu::UnitSuite::Expect &e );
116} 122}
117 123
118#define addTest( fn ) add( static_cast<Bu::UnitSuite::Test>(&fn), #fn ) 124#define addTest( fn ) add( static_cast<Bu::UnitSuite::Test>(&fn), #fn )