MCPcopy Create free account
hub / github.com/andreiavrammsd/cpp-channel / TEST

Function TEST

tests/blocking_iterator_test.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <vector>
10
11TEST(BlockingIteratorTest, Traits)
12{
13 using type = int;
14 using iterator = msd::blocking_iterator<msd::channel<type>>;
15 EXPECT_TRUE((std::is_same<iterator::value_type, type>::value));
16
17 using iterator_traits = std::iterator_traits<iterator>;
18 EXPECT_TRUE((std::is_same<iterator_traits::value_type, type>::value));
19 EXPECT_TRUE((std::is_same<iterator_traits::iterator_category, std::input_iterator_tag>::value));
20}
21
22TEST(BlockingIteratorTest, ReadFromChannelInOrder)
23{

Callers

nothing calls this directly

Calls 4

back_inserterFunction · 0.85
writeMethod · 0.80
closeMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected