overhead_line_tests Class Reference

Inherits test_helper.

List of all members.


Detailed Description

Test class for overhead lines.

This class contains unit tests for different configurations of overhead lines.

Definition at line 12 of file overheadline_test.h.


Public Member Functions

void setUp ()
 Called by CPPUnit to ensure that any special pre-testing steps are completed before the tests are executed.
void test_node_create ()
 Test the creation of an object.
void test_overhead_line_a ()
 This function performs a unit test for overhead lines.

Member Function Documentation

void overhead_line_tests::test_node_create (  )  [inline]

Test the creation of an object.

Part of this test includes retrieving the class that this object will represent, creating the object, and testing certain post creation assumptions.

For each feature of the module that we want to test, we should create a separate test function. A function prototype is acceptable here, with the implementation of the method in a .cpp file.

Definition at line 46 of file overheadline_test.h.

References gl_create_object.

void overhead_line_tests::test_overhead_line_a (  )  [inline]

This function performs a unit test for overhead lines.

Overhead lines can't be tested independantly, but require a node at either end. In this test, we will create 2 nodes, anchor them at either end of a single overhead line, and then perform a series of sync's to perform the sweeps that will perform the calculations to find the current in the line at a given timestamp.

Definition at line 61 of file overheadline_test.h.

References gl_create_object, s_test_callbacks::init_objects, OBJECTDATA, PC_BOTTOMUP, PC_POSTTOPDOWN, PC_PRETOPDOWN, PHASE_A, PHASE_N, s_test_callbacks::setup_test_ranks, and s_test_callbacks::sync_all.


The documentation for this class was generated from the following file:

GridLAB-DTM Version 2.0
An open-source project initiated by the US Department of Energy