fuzz: Use BasicTestingSetup for coins_view target

This commit is contained in:
TheCharlatan 2024-07-05 15:33:45 +02:00
parent 9e2a723d5d
commit f46b220256
No known key found for this signature in database
GPG key ID: 9B79B45691DB4173

View file

@ -27,7 +27,6 @@
#include <vector>
namespace {
const TestingSetup* g_setup;
const Coin EMPTY_COIN{};
bool operator==(const Coin& a, const Coin& b)
@ -39,8 +38,7 @@ bool operator==(const Coin& a, const Coin& b)
void initialize_coins_view()
{
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
g_setup = testing_setup.get();
static const auto testing_setup = MakeNoLogFileContext<>();
}
FUZZ_TARGET(coins_view, .init = initialize_coins_view)