Consolidate duplicate test data

This commit is contained in:
2025-08-15 06:38:38 -04:00
parent a793db40f0
commit 469e44c6f6
5 changed files with 150 additions and 232 deletions

16
benchmarks/test_data.hpp Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <string>
namespace weaseldb::test_data {
// Sample JSON strings of varying complexity for benchmarking and testing
// Declarations only - definitions in test_data.cpp to avoid ODR violations
extern const std::string SIMPLE_JSON;
extern const std::string MEDIUM_JSON;
extern const std::string COMPLEX_JSON;
// Generate a large JSON with many operations for stress testing
std::string generate_large_json(int num_operations);
} // namespace weaseldb::test_data