- Timestamp:
- Dec 12, 2009, 11:15:11 PM (14 years ago)
- Location:
- trunk/test
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/repo/db/current
r938 r981 1 6 6 2641 67 2o 4 -
trunk/test/stats_test.cc
r978 r981 40 40 #include <vector> 41 41 42 using namespace theplu::svndigest; 43 42 44 namespace theplu{ 43 45 namespace svndigest{ … … 46 48 int linetype, const std::string& descr, const std::string& author); 47 49 std::string path(void); 48 bool test_add( void);49 bool test_blame( void);50 bool test_classic( void);50 bool test_add(test::Suite&); 51 bool test_blame(test::Suite&); 52 bool test_classic(test::Suite&); 51 53 bool test_base_class(const Stats&); 52 54 bool test_cache(const Stats&); … … 57 59 int main( int argc, char* argv[]) 58 60 { 59 using namespace theplu::svndigest;60 61 test::Suite suite(argc, argv, true); 61 62 … … 69 70 } 70 71 71 ok &= test_add( );72 ok &= test_blame( );73 ok &= test_classic( );72 ok &= test_add(suite); 73 ok &= test_blame(suite); 74 ok &= test_classic(suite); 74 75 75 76 if (verbose) { … … 93 94 } 94 95 95 bool test_add(void) 96 { 96 bool test_add(test::Suite& suite) 97 { 98 suite.out() << "testing add\n"; 97 99 bool ok =true; 98 100 AddStats cs(path()); … … 140 142 141 143 142 bool test_blame(void) 143 { 144 bool test_blame(test::Suite& suite) 145 { 146 suite.out() << "testing blame\n"; 144 147 bool ok =true; 145 148 BlameStats cs(path()); … … 207 210 208 211 209 bool test_classic(void) 210 { 212 bool test_classic(test::Suite& suite) 213 { 214 suite.out() << "testing classic\n"; 211 215 bool ok =true; 212 216 ClassicStats cs(path()); … … 216 220 // testing copyright lines for peter 217 221 std::vector<int> correct(48,0); 218 correct[47]= 2;222 correct[47]=1; 219 223 ok &= check(cs, correct, LineTypeParser::copyright, "copyright", "peter"); 220 224 … … 253 257 correct[28]=31; 254 258 correct[30]=63; 255 correct[47]= 2;259 correct[47]=1; 256 260 ok &= check(cs, correct, LineTypeParser::total, "total", "all"); 257 261
Note: See TracChangeset
for help on using the changeset viewer.