diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2010-05-28 19:23:45 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-28 19:23:45 +0000 |
| commit | 674274ed06dfdf9488e7f3bc9e3b45b9f7f4fb18 (patch) | |
| tree | df88d2ee7f25614e16ce2df7c07ca191f1745ac8 /src/unitsuite.h | |
| parent | 5b68b0c6abd98fc99acd57a2c5c691468e7dcb97 (diff) | |
| download | libbu++-674274ed06dfdf9488e7f3bc9e3b45b9f7f4fb18.tar.gz libbu++-674274ed06dfdf9488e7f3bc9e3b45b9f7f4fb18.tar.bz2 libbu++-674274ed06dfdf9488e7f3bc9e3b45b9f7f4fb18.tar.xz libbu++-674274ed06dfdf9488e7f3bc9e3b45b9f7f4fb18.zip | |
More myriad testing and unit test features, not unit tests that may take a
while are welcome to provide progress info with some builtin functions.
The Bu::Archive class now throws an exception if reading is interrupted by EOS
Diffstat (limited to 'src/unitsuite.h')
| -rw-r--r-- | src/unitsuite.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unitsuite.h b/src/unitsuite.h index ddd3835..475ee48 100644 --- a/src/unitsuite.h +++ b/src/unitsuite.h | |||
| @@ -96,6 +96,11 @@ namespace Bu | |||
| 96 | void add( Test fTest, const Bu::FString &sName, Expect e=expectPass ); | 96 | void add( Test fTest, const Bu::FString &sName, Expect e=expectPass ); |
| 97 | void setName( const FString &sName ); | 97 | void setName( const FString &sName ); |
| 98 | 98 | ||
| 99 | void dispProgress(); | ||
| 100 | void setStepCount( int iSteps ); | ||
| 101 | void incProgress( int iAmnt = 1 ); | ||
| 102 | void setProgress( int iAmnt ); | ||
| 103 | |||
| 99 | private: | 104 | private: |
| 100 | int onListCases( Bu::Array<Bu::FString> aParam ); | 105 | int onListCases( Bu::Array<Bu::FString> aParam ); |
| 101 | 106 | ||
| @@ -116,6 +121,9 @@ namespace Bu | |||
| 116 | typedef Bu::List<Bu::FString> StrList; | 121 | typedef Bu::List<Bu::FString> StrList; |
| 117 | StrList lFileCleanup; | 122 | StrList lFileCleanup; |
| 118 | int iNameWidth; | 123 | int iNameWidth; |
| 124 | int iStepCount; | ||
| 125 | int iProgress; | ||
| 126 | time_t tLastUpdate; | ||
| 119 | }; | 127 | }; |
| 120 | 128 | ||
| 121 | Bu::Formatter &operator<<( Bu::Formatter &f, const Bu::UnitSuite::Expect &e ); | 129 | Bu::Formatter &operator<<( Bu::Formatter &f, const Bu::UnitSuite::Expect &e ); |
