Skip to content

Commit

Permalink
TESTS WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jan 24, 2024
1 parent 59ce1b4 commit 6819350
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions nano/core_test/object_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,4 +333,26 @@ TEST (trace_logging, no_copy)

nano::logger logger;
logger.trace (nano::log::type::all, nano::log::detail::all, nano::log::arg{ "no_copyable", nc });
}

TEST (trace_logging, no_move)
{
struct no_moveable
{
no_moveable () = default;
no_moveable (no_moveable const &) = delete;
no_moveable (no_moveable &&) = delete;
no_moveable & operator= (no_moveable const &) = delete;
no_moveable & operator= (no_moveable &&) = delete;

void operator() (nano::object_stream & obs) const
{
obs.write ("test", "test");
}
};

no_moveable nm;

nano::logger logger;
logger.trace (nano::log::type::all, nano::log::detail::all, nano::log::arg{ "no_moveable", nm });
}

0 comments on commit 6819350

Please sign in to comment.