xo-alloc2: tidy for ++ utest coverage
This commit is contained in:
parent
50d87d3371
commit
d0496a3245
3 changed files with 6 additions and 1 deletions
|
|
@ -607,7 +607,8 @@ namespace xo {
|
|||
|
||||
auto
|
||||
DX1Collector::alloc_copy(value_type src) noexcept -> value_type {
|
||||
return with_facet<AAllocator>::mkobj(this->new_space()).alloc_copy(src);
|
||||
return this->new_space()->alloc_copy(src);
|
||||
//return with_facet<AAllocator>::mkobj(this->new_space()).alloc_copy(src);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ namespace xo {
|
|||
using xo::mm::CollectorTypeRegistry;
|
||||
using xo::mm::AAllocator;
|
||||
using xo::mm::ACollector;
|
||||
using xo::mm::ICollector_Any;
|
||||
using xo::mm::AGCObject;
|
||||
using xo::mm::X1CollectorConfig;
|
||||
using xo::mm::DX1Collector;
|
||||
|
|
@ -59,6 +60,7 @@ namespace xo {
|
|||
REQUIRE(!gc1);
|
||||
REQUIRE(gc1.iface() != nullptr);
|
||||
REQUIRE(gc1.data() == nullptr);
|
||||
REQUIRE(gc1._typeseq() == typeseq::id<ICollector_Any>());
|
||||
}
|
||||
|
||||
TEST_CASE("DX1Collector-1", "[alloc2][gc][DX1Collector]")
|
||||
|
|
|
|||
|
|
@ -179,6 +179,8 @@ namespace xo {
|
|||
obj<AAllocIterator> ix = range.begin();
|
||||
obj<AAllocIterator> end_ix = range.end();
|
||||
|
||||
REQUIRE(ix._typeseq() == typeseq::id<DArenaIterator>());
|
||||
REQUIRE(end_ix._typeseq() == typeseq::id<DArenaIterator>());
|
||||
REQUIRE(ix.iface());
|
||||
REQUIRE(ix.data());
|
||||
REQUIRE(end_ix.iface());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue