Run clang-tidy on every ported test

The test regex skipped file names with digits (test_aead2022_cpp.cpp,
test_base64_cpp.cpp); include them, fix the two optional accesses it then
reports, and build test_jconf with the strict warning set.
This commit is contained in:
Max Lv
2026-10-15 01:33:51 +08:00
parent 678a891ef9
commit 2ace0f2a24
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -398,8 +398,9 @@ void test_methods()
salt_pool();
SS_CHECK(!sc::find_aead2022("aes-256-gcm"));
auto spec = sc::find_aead2022("2022-blake3-aes-256-gcm");
SS_CHECK(!sc::Psk::from_base64(*spec, kPsk16)); // too short
SS_CHECK(!sc::Psk::from_base64(*spec, "not base64"));
SS_CHECK(spec.has_value());
SS_CHECK(!sc::Psk::from_base64(spec.value(), kPsk16)); // too short
SS_CHECK(!sc::Psk::from_base64(spec.value(), "not base64"));
}
void test_no_heap_in_steady_state()