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(
|
add_executable(
|
||||||
test_commit_request
|
test_commit_request
|
||||||
tests/test_commit_request.cpp src/json_commit_request_parser.cpp
|
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)
|
src/arena_allocator.cpp ${CMAKE_BINARY_DIR}/json_tokens.cpp)
|
||||||
add_dependencies(test_commit_request generate_json_tokens)
|
add_dependencies(test_commit_request generate_json_tokens)
|
||||||
target_link_libraries(test_commit_request doctest::doctest weaseljson test_data
|
target_link_libraries(test_commit_request doctest::doctest weaseljson test_data
|
||||||
nlohmann_json::nlohmann_json simdutf::simdutf)
|
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
|
add_executable(bench_arena_allocator benchmarks/bench_arena_allocator.cpp
|
||||||
src/arena_allocator.cpp)
|
src/arena_allocator.cpp)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "commit_request_parser.hpp"
|
||||||
#include "json_token_enum.hpp"
|
#include "json_token_enum.hpp"
|
||||||
#include "parser_interface.hpp"
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <simdutf.h>
|
#include <simdutf.h>
|
||||||
#include <weaseljson/weaseljson.h>
|
#include <weaseljson/weaseljson.h>
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#include "nlohmann_reference_parser.hpp"
|
#include "nlohmann_reference_parser.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <array>
|
|
||||||
#include <simdutf.h>
|
#include <simdutf.h>
|
||||||
|
|
||||||
NlohmannReferenceParser::ParseResult
|
NlohmannReferenceParser::ParseResult
|
||||||
Reference in New Issue
Block a user