MCPcopy Create free account
hub / github.com/cusplibrary/cusplibrary / VectorUnitTest

Class VectorUnitTest

testing/unittest/testframework.h:255–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 template <typename, typename> class Vector,
254 template <typename> class Alloc>
255 struct VectorUnitTest
256 : public UnitTest
257{
258 VectorUnitTest()
259 : UnitTest((base_class_name(unittest::type_name<TestName< Vector<int, Alloc<int> > > >()) + "<" +
260 base_class_name(unittest::type_name<Vector<int, Alloc<int> > >()) + ">").c_str())
261 { }
262
263 void run()
264 {
265 // zip up the type list with Alloc
266 typedef typename unittest::transform1<TypeList, Alloc>::type AllocList;
267
268 // zip up the type list & alloc list with Vector
269 typedef typename unittest::transform2<TypeList, AllocList, Vector>::type VectorList;
270
271 // get the first type in the list
272 typedef typename unittest::get_type<VectorList,0>::type first_type;
273
274 unittest::for_each_type<VectorList,TestName,first_type,0> loop;
275
276 // loop over the types
277 loop(0);
278 }
279}; // end VectorUnitTest
280

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected