Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tst/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void run_test(const full_id& id, const std::function<void()>& proc, reporter& re

std::string console_error_message;

utki::assert(proc, SL);
utki::assert(proc != nullptr, SL);
uint32_t start_ticks = utki::get_ticks_ms();

auto run_proc = [&]() -> bool {
Expand Down Expand Up @@ -444,7 +444,7 @@ int application::run()
}

auto& proc = i.info().proc;
utki::assert(proc, SL);
utki::assert(proc != nullptr, SL);

if (is_single_test) {
// when running a single test indicated by --test command line option we
Expand Down Expand Up @@ -501,7 +501,7 @@ int application::run()
SL
);
auto f = queue.pop_front();
utki::assert(f, SL);
utki::assert(f != nullptr, SL);
f();
}
#endif
Expand Down Expand Up @@ -729,7 +729,7 @@ void application::init()
auto& s = this->get_suite(i.first);
auto old_size = s.size();
for (const auto& p : i.second) {
utki::assert(p, SL);
utki::assert(p != nullptr, SL);
p(s);
}
if (old_size == s.size()) {
Expand Down
2 changes: 1 addition & 1 deletion src/tst/suite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class suite
// NOLINTNEXTLINE(bugprone-exception-escape)
this->add(make_indexed_id(id, i), flags, [proc = shared_proc, param = std::move(params[i])]() {
utki::assert(proc, SL);
utki::assert(*proc, SL);
utki::assert(*proc != nullptr, SL);
(*proc)(param);
});
}
Expand Down
Loading