xo-gc stack: many small utest improvements.
This commit is contained in:
parent
42e09dd21e
commit
9cf74ea149
4 changed files with 28 additions and 28 deletions
25
utest/ResourceVisitor.test.cpp
Normal file
25
utest/ResourceVisitor.test.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/** @file ResourceVisitor.test.cpp
|
||||
*
|
||||
* @author Roland Conybeare, May 2026
|
||||
**/
|
||||
|
||||
#include <xo/alloc2/ResourceVisitor.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
namespace xo {
|
||||
using xo::mm::AResourceVisitor;
|
||||
|
||||
namespace ut {
|
||||
|
||||
TEST_CASE("ResourceVisitor-1", "[resourcevisitor]")
|
||||
{
|
||||
obj<AResourceVisitor> v;
|
||||
|
||||
REQUIRE(v.iface());
|
||||
REQUIRE(!v.iface()->_has_null_vptr());
|
||||
}
|
||||
|
||||
}
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end ResourceVisitor.test.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue