MCPcopy Create free account
hub / github.com/RaftLib/RaftLib / main

Function main

testsuite/staticSplitJoinRetStruct.cpp:58–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57
58int
59main()
60{
61 using namespace raft;
62 using type_t = std::uint32_t;
63 using gen = random_variate< std::default_random_engine,
64 std::uniform_int_distribution,
65 type_t >;
66 using p_out = raft::print< type_t, '\n' >;
67
68 std::vector< type_t > output;
69
70 const static auto min( 0 );
71 const static auto max( 100 );
72 gen g( 100, min, max );
73
74 p_out print;
75
76 sub< type_t > s;
77 sub< type_t > s2;
78 raft::join< type_t > jo( STATICPORT );
79
80 raft::map m;
81 auto kernels( m += g <= s >= jo >> print );
82 if( kernels.getSrcSize() != 1 )
83 {
84 std::cerr << "Return kernel_pair_t source should be of size 1 for this test\n";
85 return( EXIT_FAILURE );
86 }
87 if( kernels.getDstSize() != 1 )
88 {
89 std::cerr << "Return kernel_pair_t destination should be of size 1 for this test\n";
90 return( EXIT_FAILURE );
91 }
92
93 m.exe();
94
95 return( EXIT_SUCCESS );
96}

Callers

nothing calls this directly

Calls 2

getSrcSizeMethod · 0.80
getDstSizeMethod · 0.80

Tested by

no test coverage detected