MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / TEST

Function TEST

tests/DCPS/SequenceIterator/SequenceIteratorTest.cpp:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace OpenDDS;
9
10TEST(SequenceIteratorTest, Iterator_Concept)
11{
12 DDS::OctetSeq s(1);
13 s.length(1);
14 s[0] = 1;
15
16 typedef DCPS::SequenceIterator<DDS::OctetSeq> iter_t;
17 iter_t i1 = DCPS::sequence_begin(s);
18 iter_t i2(i1);
19 i1 = i2;
20 using std::swap;
21 swap(i1, i2);
22 const CORBA::Octet o = *i1;
23 ACE_UNUSED_ARG(o);
24 ++i1;
25}
26
27TEST(SequenceIteratorTest, StdCopy_ToVector_Success)
28{

Callers

nothing calls this directly

Calls 9

sequence_beginFunction · 0.85
sequence_endFunction · 0.85
back_inserterFunction · 0.85
swapFunction · 0.50
copyFunction · 0.50
lengthMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected