src/Testing/SectTest.cc
/* This function will initialize the test results vector TestResults. This 
   should be done whenever testing is done if either 1.) The status flag is
   -1, indicating no tests have ever been run, or if the current number of
   tests does not match the size of the tests results vector.  The latter 
   indicates that additional tests have been added, potentially with a
   different ordering, since the test results were generated previously.    */
This function will initialize the test results vector TestResults. This
should be done whenever testing is done if either 1.) The status flag is
1, indicating no tests have ever been run, or if the current number of
tests does not match the size of the tests results vector.  The latter
indicates that additional tests have been added, potentially with a
different ordering, since the test results were generated previously.
This function will initialize the test results vector TestResults . This should be done whenever testing is done if either 1 . ) The status flag is 1 indicating no tests have ever been run or if the current number of tests does not match the size of the tests results vector . The latter indicates that additional tests have been added potentially with a different ordering since the test results were generated previously .
void SectTest::SetResults(int force)
  {
  if(TestResults.size() != size())		
    {						
    TestResults = std::vector<int>(size());		
    TestStatus = -1;				
    }
  if(force || TestStatus==-1)			
    {						
    for(int i=0; i<int(size()); i++)		
      TestResults[i] = -1;			
    }
  }
void SectTest :: SetResults ( int force ) { if ( TestResults . size ( ) != size ( ) ) { TestResults = std :: vector < int > ( size ( ) ) ; TestStatus = -1 ; } if ( force || TestStatus == -1 ) { for ( int i = 0 ; i < int ( size ( ) ) ; i ++ ) TestResults [ i ] = -1 ; } }
This function will initialize the test results vector TestResults.
This function will initialize the test results vector TestResults .
// If the vector is the wrong // size we make a new on //   Set the vector anew  //   Flag we are untested // We restart results if forced // or we have not tested yet // Initialize all results to // be -1 (i.e. untested)