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

Function main

testsuite/staticLongSplitChainRetStruct.cpp:58–97  ·  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
79
80 raft::map m;
81 auto kernels( m += g <= s >> s2 >> 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() != STATICPORT )
88 {
89 std::cerr << "Return kernel_pair_t destination should be of size " <<
90 STATICPORT << " for this test\n";
91 return( EXIT_FAILURE );
92 }
93
94 m.exe();
95
96 return( EXIT_SUCCESS );
97}

Callers

nothing calls this directly

Calls 2

getSrcSizeMethod · 0.80
getDstSizeMethod · 0.80

Tested by

no test coverage detected