#include <TestGLILight.h>
Public Member Functions | |
void | TestGLILight () |
Puts the tests together into one. | |
Private Member Functions | |
void | Run1 (clSimManager *p_oSimManager) |
Tests GLI calculations. | |
void | Run2 (clSimManager *p_oSimManager) |
Tests GLI calculations. | |
void | TestDoSetupErrorProcessing (clSimManager *p_oSimManager) |
This tests error processing during setup. | |
char * | WriteXMLFile1 () |
Writes a parameter file to direct testing for GLI light assignments. | |
char * | WriteXMLFile2 () |
Writes a parameter file to direct testing for GLI light assignments. | |
char * | WriteXMLErrorFile1 () |
Writes a parameter file with a deliberate error. | |
Classes | |
struct | fakeRecord |
For testing the values in tree records. More... |
|
Tests GLI calculations. WriteXMLFile1() is used for setup. Seventeen trees are created, and the GLI calculations of six of them are tested to make sure they are right. There is only one species, for simplicity.
|
|
Tests GLI calculations. WriteXMLFile2() is used for setup. Five trees are created, and the GLI calculations of two of them are tested to make sure they are right. This tests mid-crown calculations. There is only one species, for simplicity.
|
|
This tests error processing during setup. The only error currently trapped for is that the number of years per timestep is less than 1.
|
|
Writes a parameter file with a deliberate error. The number of years per timestep is less than 1, which should cause light to throw an error.
|
|
Writes a parameter file to direct testing for GLI light assignments.
|
|
Writes a parameter file to direct testing for GLI light assignments.
|