/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/fuzz/util/check_globals.h
22 строки
601 B
marcofleon
fuzz: Abort when calling system time without setting mock time
06 янв 2025, 18:43
06 янв 2025, 18:43
a96b84c
Код
Авторство
О чём код?
// Copyright (c) 2024-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_TEST_FUZZ_UTIL_CHECK_GLOBALS_H #define BITCOIN_TEST_FUZZ_UTIL_CHECK_GLOBALS_H #include <atomic> #include <memory> #include <optional> #include <string> extern std::atomic<bool> g_used_system_time; struct CheckGlobalsImpl; struct CheckGlobals { CheckGlobals(); ~CheckGlobals(); std::unique_ptr<CheckGlobalsImpl> m_impl; }; #endif // BITCOIN_TEST_FUZZ_UTIL_CHECK_GLOBALS_H