MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / main

Function main

scripts/test_stringzilla.cpp:4452–4555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4450}
4451
4452int main(int argc, char const **argv) {
4453
4454 // Let's greet the user nicely
4455 sz_unused_(argc && argv);
4456 std::printf("Hi, dear tester! You look nice today!\n");
4457 std::printf("- Uses Westmere: %s \n", SZ_USE_WESTMERE ? "yes" : "no");
4458 std::printf("- Uses Haswell: %s \n", SZ_USE_HASWELL ? "yes" : "no");
4459 std::printf("- Uses Goldmont: %s \n", SZ_USE_GOLDMONT ? "yes" : "no");
4460 std::printf("- Uses Skylake: %s \n", SZ_USE_SKYLAKE ? "yes" : "no");
4461 std::printf("- Uses Ice Lake: %s \n", SZ_USE_ICE ? "yes" : "no");
4462 std::printf("- Uses NEON: %s \n", SZ_USE_NEON ? "yes" : "no");
4463 std::printf("- Uses NEON AES: %s \n", SZ_USE_NEON_AES ? "yes" : "no");
4464 std::printf("- Uses NEON SHA: %s \n", SZ_USE_NEON_SHA ? "yes" : "no");
4465 std::printf("- Uses SVE: %s \n", SZ_USE_SVE ? "yes" : "no");
4466 std::printf("- Uses SVE2: %s \n", SZ_USE_SVE2 ? "yes" : "no");
4467 std::printf("- Uses SVE2 AES: %s \n", SZ_USE_SVE2_AES ? "yes" : "no");
4468 std::printf("- Uses CUDA: %s \n", SZ_USE_CUDA ? "yes" : "no");
4469 print_test_environment();
4470
4471 std::printf("\n=== Basic Utilities ===\n");
4472 std::printf("- test_arithmetical_utilities...\n");
4473 test_arithmetical_utilities();
4474 std::printf("- test_sequence_struct...\n");
4475 test_sequence_struct();
4476 std::printf("- test_memory_allocator_struct...\n");
4477 test_memory_allocator_struct();
4478 std::printf("- test_byteset_struct...\n");
4479 test_byteset_struct();
4480 std::printf("- test_equivalence...\n");
4481 test_equivalence();
4482
4483 std::printf("\n=== Sequence Algorithms ===\n");
4484 std::printf("- test_sorting_algorithms...\n");
4485 test_sorting_algorithms();
4486 std::printf("- test_intersecting_algorithms...\n");
4487 test_intersecting_algorithms();
4488
4489 std::printf("\n=== Core APIs ===\n");
4490 std::printf("- test_ascii_utilities<sz::string>...\n");
4491 test_ascii_utilities<sz::string>();
4492 std::printf("- test_ascii_utilities<sz::string_view>...\n");
4493 test_ascii_utilities<sz::string_view>();
4494 std::printf("- test_memory_utilities...\n");
4495 test_memory_utilities();
4496 std::printf("- test_large_memory_utilities...\n");
4497 test_large_memory_utilities();
4498 std::printf("- test_replacements...\n");
4499 test_replacements();
4500
4501 std::printf("\n=== STL Compatibility ===\n");
4502#if SZ_IS_CPP17_ && defined(__cpp_lib_string_view)
4503 std::printf("- test_stl_compatibility_for_reads<std::string_view>...\n");
4504 test_stl_compatibility_for_reads<std::string_view>();
4505#endif
4506 std::printf("- test_stl_compatibility_for_reads<std::string>...\n");
4507 test_stl_compatibility_for_reads<std::string>();
4508 std::printf("- test_stl_compatibility_for_reads<sz::string_view>...\n");
4509 test_stl_compatibility_for_reads<sz::string_view>();

Callers

nothing calls this directly

Calls 15

print_test_environmentFunction · 0.85
test_sequence_structFunction · 0.85
test_byteset_structFunction · 0.85
test_equivalenceFunction · 0.85
test_memory_utilitiesFunction · 0.85
test_replacementsFunction · 0.85
test_stl_conversionsFunction · 0.85
test_stl_containersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…