/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/libs/common/printable_params_ut.cpp
31 строка
938 B
Tojiboev Zavqiddin
log title params (#6089)
10 июн 2026, 14:27
Не верифицирован
10 июн 2026, 14:27
58f5856
Код
Авторство
О чём код?
#include "printable_params.h" #include <library/cpp/testing/unittest/registar.h> namespace NCloud::NBlockStore { //////////////////////////////////////////////////////////////////////////////// Y_UNIT_TEST_SUITE(TPrintableParams) { Y_UNIT_TEST(PrintKeyValueTest) { const std::pair<TStringBuf, TPrintableValue> params[] = { {"str", TString("hello")}, {"cstr", static_cast<const char*>("world")}, {"buf", TStringBuf("bufval")}, {"i", int{-1}}, {"u16", ui16{16}}, {"u32", ui32{32}}, {"u64", ui64{64}}, {"range", TBlockRange64::MakeClosedInterval(0, 9)}, {"flag", std::monostate{}}, }; UNIT_ASSERT_VALUES_EQUAL( "str:hello cstr:world buf:bufval i:-1 u16:16 u32:32 u64:64" " range:[0..9] flag", PrintParams(params)); } } } // namespace NCloud::NBlockStore