Reorganize
Test-only code to tests Rename interface to CommitRequestParser
This commit is contained in:
@@ -110,12 +110,12 @@ target_include_directories(test_arena_allocator PRIVATE src)
|
||||
add_executable(
|
||||
test_commit_request
|
||||
tests/test_commit_request.cpp src/json_commit_request_parser.cpp
|
||||
src/nlohmann_reference_parser.cpp src/parser_comparison.cpp
|
||||
tests/nlohmann_reference_parser.cpp tests/parser_comparison.cpp
|
||||
src/arena_allocator.cpp ${CMAKE_BINARY_DIR}/json_tokens.cpp)
|
||||
add_dependencies(test_commit_request generate_json_tokens)
|
||||
target_link_libraries(test_commit_request doctest::doctest weaseljson test_data
|
||||
nlohmann_json::nlohmann_json simdutf::simdutf)
|
||||
target_include_directories(test_commit_request PRIVATE src)
|
||||
target_include_directories(test_commit_request PRIVATE src tests)
|
||||
|
||||
add_executable(bench_arena_allocator benchmarks/bench_arena_allocator.cpp
|
||||
src/arena_allocator.cpp)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "commit_request_parser.hpp"
|
||||
#include "json_token_enum.hpp"
|
||||
#include "parser_interface.hpp"
|
||||
#include <memory>
|
||||
#include <simdutf.h>
|
||||
#include <weaseljson/weaseljson.h>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#include "nlohmann_reference_parser.hpp"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <simdutf.h>
|
||||
|
||||
NlohmannReferenceParser::ParseResult
|
||||
@@ -266,4 +264,4 @@ NlohmannReferenceParser::parse_operation_type(const std::string &type_str) {
|
||||
}
|
||||
// Default fallback (should not happen if validation is correct)
|
||||
return Operation::Type::Write;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user