template <typename Set>
- void test( Set& s )
+ void test( Set& s, std::vector< typename Set::value_type >& data )
{
// Precondition: set is empty
// Postcondition: set is empty
- base_class::test_< Set::c_isSorted>( s );
+ base_class::test_< Set::c_isSorted>( s, data );
typedef typename Set::value_type value_type;
size_t const nSetSize = base_class::kSize;
- std::vector< value_type > data;
- data.reserve( nSetSize );
- for ( size_t key = 0; key < nSetSize; ++key )
- data.push_back( value_type( static_cast<int>(key) ) );
-
// clear
for ( auto& i : data ) {
i.clear_stat();
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_unordered )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_basehook_ordered_cmp )
>::type
> set_type;
- set_type s( 32, 6, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 6, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_ordered_cmp )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_basehook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 4, ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 4, ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_basehook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_basehook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_basehook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_basehook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_basehook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
//************************************************************
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_unordered )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_memberhook_ordered_cmp )
>::type
> set_type;
- set_type s( 32, 6, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 6, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_ordered_cmp )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_memberhook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 4, ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 4, ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_memberhook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_memberhook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_memberhook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_list_memberhook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, striped_vector_memberhook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
//************************************************************
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_unordered )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_basehook_ordered_cmp )
>::type
> set_type;
- set_type s( 32, 6, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 6, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_ordered_cmp )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_basehook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 4, ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 4, ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_basehook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_basehook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_basehook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_basehook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_basehook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
//************************************************************
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_unordered )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_memberhook_ordered_cmp )
>::type
> set_type;
- set_type s( 32, 6, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 6, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_ordered_cmp )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_memberhook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 4, ht );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 4, ht );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_ordered_less )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_memberhook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_ordered_cmpmix )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_memberhook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_ordered_stat )
>::type
> set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_memberhook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s;
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_unordered_storehash )
};
typedef ci::CuckooSet< item_type, set_traits > set_type;
- set_type s( 32, 4 );
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32, 4 );
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_list_memberhook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( 32, 6, 0, std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( 32, 6, 0, std::move( ht ));
+ test( s, data );
+ }
}
TEST_F( IntrusiveCuckooSet, refinable_vector_memberhook_ordered_storehash )
>::type
> set_type;
- typename set_type::hash_tuple_type ht;
- set_type s( std::move( ht ));
- test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ typename set_type::hash_tuple_type ht;
+ set_type s( std::move( ht ));
+ test( s, data );
+ }
}
} // namespace
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::base_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::base_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_basehook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
+ this->test( s, data );
+ }
}
// ****************************************************************
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::member_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::member_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, striped_memberhook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
+ this->test( s, data );
+ }
}
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::base_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::base_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_basehook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ));
+ this->test( s, data );
+ }
}
// ****************************************************************
ci::opt::compare< typename TestFixture::template cmp< typename TestFixture::member_item >>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_less )
ci::opt::less< typename TestFixture::template less< typename TestFixture::member_item >>
> set_type;
- set_type s( 32 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 32 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_cmpmix )
ci::opt::resizing_policy< ci::striped_set::load_factor_resizing< 8 >>
> set_type;
- set_type s( 64 );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64 );
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_resizing_threshold )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<8>>
> set_type;
- set_type s;
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s;
+ this->test( s, data );
+ }
}
TYPED_TEST_P( IntrusiveStripedSet, refinable_memberhook_resizing_threshold_rt )
ci::opt::resizing_policy< ci::striped_set::single_bucket_size_threshold<0>>
> set_type;
- set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
- this->test( s );
+ std::vector< typename set_type::value_type > data;
+ {
+ set_type s( 64, ci::striped_set::single_bucket_size_threshold<0>( 4 ) );
+ this->test( s, data );
+ }
}
REGISTER_TYPED_TEST_CASE_P( IntrusiveStripedSet,