Z-Wave Protocol Controller Reference
zpc_attribute_store_test_helper Namespace Reference

Helper namespace for the ZPC attribute store tests. More...

Functions

void zpc_attribute_store_test_helper_init ()
 Initialize the test helper. More...
 
void helper_set_command_class_version (zwave_command_class_t command_class_id, const zwave_cc_version_t &version, attribute_store::attribute parent=cpp_endpoint_id_node)
 Set version for current class. More...
 
zwave_cc_version_t helper_get_command_class_version (zwave_command_class_t command_class_id)
 Get version for current class. More...
 
attribute_store::attribute helper_test_and_get_node (attribute_store_type_t node_type, attribute_store::attribute parent=cpp_endpoint_id_node)
 Get a node and check that it exists. More...
 
void helper_test_node_exists (attribute_store_type_t node_type, attribute_store::attribute parent=cpp_endpoint_id_node)
 Test that a node exists. More...
 
void helper_test_node_does_not_exists (attribute_store_type_t node_type, attribute_store::attribute parent=cpp_endpoint_id_node)
 Test that a node doesn't exists. More...
 
template<typename T >
attribute_store::attribute helper_test_attribute_value (attribute_store_type_t node_type, T expected_value, attribute_store::attribute parent=cpp_endpoint_id_node, attribute_store_node_value_state_t state=REPORTED_ATTRIBUTE)
 

Variables

attribute_store::attribute cpp_endpoint_id_node
 

Detailed Description

Helper namespace for the ZPC attribute store tests.

CPP wrapper of the ZPC attribute store test helper. This is done in a separate file to avoid breaking linkage to existing tests.

Function Documentation

◆ helper_get_command_class_version()

zwave_cc_version_t zpc_attribute_store_test_helper::helper_get_command_class_version ( zwave_command_class_t  command_class_id)

Get version for current class.

Parameters
command_class_idCommand class id to get version
Returns
Command class version

◆ helper_set_command_class_version()

void zpc_attribute_store_test_helper::helper_set_command_class_version ( zwave_command_class_t  command_class_id,
const zwave_cc_version_t version,
attribute_store::attribute  parent = cpp_endpoint_id_node 
)

Set version for current class.

Parameters
command_class_idCommand class id to set version
versionCommand class version to set
parentParent node of the node to get (default to current endpoint)

◆ helper_test_and_get_node()

attribute_store::attribute zpc_attribute_store_test_helper::helper_test_and_get_node ( attribute_store_type_t  node_type,
attribute_store::attribute  parent = cpp_endpoint_id_node 
)

Get a node and check that it exists.

Note
Test will fail if node doesn't exists
Parameters
node_typeNode type to get
parentParent node of the node to get (default to current endpoint)
Returns
attribute_store::attribute Node that was found (garmented to exists)
Here is the caller graph for this function:

◆ helper_test_attribute_value()

template<typename T >
attribute_store::attribute zpc_attribute_store_test_helper::helper_test_attribute_value ( attribute_store_type_t  node_type,
expected_value,
attribute_store::attribute  parent = cpp_endpoint_id_node,
attribute_store_node_value_state_t  state = REPORTED_ATTRIBUTE 
)
Here is the call graph for this function:

◆ helper_test_node_does_not_exists()

void zpc_attribute_store_test_helper::helper_test_node_does_not_exists ( attribute_store_type_t  node_type,
attribute_store::attribute  parent = cpp_endpoint_id_node 
)

Test that a node doesn't exists.

Parameters
node_typeNode type to test
parentParent node of the node to get (default to current endpoint)

◆ helper_test_node_exists()

void zpc_attribute_store_test_helper::helper_test_node_exists ( attribute_store_type_t  node_type,
attribute_store::attribute  parent = cpp_endpoint_id_node 
)

Test that a node exists.

Parameters
node_typeNode type to test
parentParent node of the node to get (default to current endpoint)

◆ zpc_attribute_store_test_helper_init()

void zpc_attribute_store_test_helper::zpc_attribute_store_test_helper_init ( )

Initialize the test helper.

Initialize the Z-Wave network and create the base structure for the tests.

Variable Documentation

◆ cpp_endpoint_id_node

attribute_store::attribute zpc_attribute_store_test_helper::cpp_endpoint_id_node
extern