Namespace lsst::afw::typehandling::test

namespace test

Functions

BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestConstAt, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestAt, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestEquals, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestConstVisitor, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestModifyingVoidVisitor, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestModifyingReturningVisitor, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestMutableEquals, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestSize, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestMutableSize, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestWeakContains, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestContains, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestKeys, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestKeyOrder, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestClearIdempotent, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestClear, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestInsertInt, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestWeakInsertInt, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestInsertString, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestWeakInsertString, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestInsertStorable, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestInterleavedInserts, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestErase, GenericMapFactory)
BOOST_TEST_CASE_TEMPLATE_FUNCTION(TestInsertEraseInsert, GenericMapFactory)
template<class GenericMapFactory>
void addGenericMapTestCases(boost::unit_test::test_suite *const suite)

Create generic test cases for a specific GenericMap implementation.

Template Parameters
  • GenericMapFactory: a subclass of GenericFactory that creates the desired implementation. Must be default-constructible.

Parameters
  • suite: the test suite to add the tests to.

template<class GenericMapFactory>
void addMutableGenericMapTestCases(boost::unit_test::test_suite *const suite)

Create generic test cases for a specific MutableGenericMap implementation.

The tests will include all those added by addGenericMapTestCases.

Template Parameters
  • GenericMapFactory: a subclass of GenericFactory that creates the desired implementation. Must be default-constructible.

Parameters
  • suite: the test suite to add the tests to.

template<class GenericMapFactory>
void addGenericMapTestCases()

Create generic test cases for a specific GenericMap implementation.

The tests will be added to the master test suite.

Template Parameters
  • GenericMapFactory: a subclass of GenericFactory that creates the desired implementation. Must be default-constructible.

template<class GenericMapFactory>
void addMutableGenericMapTestCases()

Create generic test cases for a specific MutableGenericMap implementation.

The tests will be added to the master test suite. They will include all tests added by addGenericMapTestCases.

Template Parameters
  • GenericMapFactory: a subclass of GenericFactory that creates the desired implementation. Must be default-constructible.

class GenericFactory
#include <test.h>

Abstract factory that creates GenericMap and MutableGenericMap instances as needed.