lsst.afw  18.0.0+2
Classes | Functions
lsst::afw::typehandling::test Namespace Reference

Classes

class  GenericFactory
 Abstract factory that creates GenericMap and MutableGenericMap instances as needed. More...
 

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 (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. More...
 
template<class GenericMapFactory >
void addMutableGenericMapTestCases (boost::unit_test::test_suite *const suite)
 Create generic test cases for a specific MutableGenericMap implementation. More...
 
template<class GenericMapFactory >
void addGenericMapTestCases ()
 Create generic test cases for a specific GenericMap implementation. More...
 
template<class GenericMapFactory >
void addMutableGenericMapTestCases ()
 Create generic test cases for a specific MutableGenericMap implementation. More...
 

Function Documentation

◆ addGenericMapTestCases() [1/2]

template<class GenericMapFactory >
void lsst::afw::typehandling::test::addGenericMapTestCases ( boost::unit_test::test_suite *const  suite)

Create generic test cases for a specific GenericMap implementation.

Template Parameters
GenericMapFactorya subclass of GenericFactory that creates the desired implementation. Must be default-constructible.
Parameters
suitethe test suite to add the tests to.

Definition at line 702 of file test.h.

◆ addGenericMapTestCases() [2/2]

template<class GenericMapFactory >
void lsst::afw::typehandling::test::addGenericMapTestCases ( )
inline

Create generic test cases for a specific GenericMap implementation.

The tests will be added to the master test suite.

Template Parameters
GenericMapFactorya subclass of GenericFactory that creates the desired implementation. Must be default-constructible.

Definition at line 753 of file test.h.

◆ addMutableGenericMapTestCases() [1/2]

template<class GenericMapFactory >
void lsst::afw::typehandling::test::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
GenericMapFactorya subclass of GenericFactory that creates the desired implementation. Must be default-constructible.
Parameters
suitethe test suite to add the tests to.

Definition at line 727 of file test.h.

◆ addMutableGenericMapTestCases() [2/2]

template<class GenericMapFactory >
void lsst::afw::typehandling::test::addMutableGenericMapTestCases ( )
inline

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
GenericMapFactorya subclass of GenericFactory that creates the desired implementation. Must be default-constructible.

Definition at line 767 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [1/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestConstAt  ,
GenericMapFactory   
)

Definition at line 152 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [2/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestAt  ,
GenericMapFactory   
)

Definition at line 164 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [3/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestEquals  ,
GenericMapFactory   
)

Definition at line 204 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [4/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestConstVisitor  ,
GenericMapFactory   
)

Definition at line 214 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [5/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestModifyingVoidVisitor  ,
GenericMapFactory   
)

Definition at line 273 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [6/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestModifyingReturningVisitor  ,
GenericMapFactory   
)

Definition at line 309 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [7/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestMutableEquals  ,
GenericMapFactory   
)

Definition at line 365 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [8/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestSize  ,
GenericMapFactory   
)

Definition at line 398 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [9/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestMutableSize  ,
GenericMapFactory   
)

Definition at line 406 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [10/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestWeakContains  ,
GenericMapFactory   
)

Definition at line 424 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [11/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestContains  ,
GenericMapFactory   
)

Definition at line 439 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [12/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestKeys  ,
GenericMapFactory   
)

Definition at line 464 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [13/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestClearIdempotent  ,
GenericMapFactory   
)

Definition at line 475 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [14/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestClear  ,
GenericMapFactory   
)

Definition at line 484 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [15/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestInsertInt  ,
GenericMapFactory   
)

Definition at line 498 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [16/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestWeakInsertInt  ,
GenericMapFactory   
)

Definition at line 524 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [17/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestInsertString  ,
GenericMapFactory   
)

Definition at line 549 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [18/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestWeakInsertString  ,
GenericMapFactory   
)

Definition at line 575 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [19/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestInsertStorable  ,
GenericMapFactory   
)

Definition at line 600 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [20/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestInterleavedInserts  ,
GenericMapFactory   
)

Definition at line 630 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [21/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestErase  ,
GenericMapFactory   
)

Definition at line 658 of file test.h.

◆ BOOST_TEST_CASE_TEMPLATE_FUNCTION() [22/22]

lsst::afw::typehandling::test::BOOST_TEST_CASE_TEMPLATE_FUNCTION ( TestInsertEraseInsert  ,
GenericMapFactory   
)

Definition at line 673 of file test.h.