Coverage Report

Created: 2023-06-07 06:07

/src/simdjson/src/fallback/implementation.cpp
Line
Count
Source (jump to first uncovered line)
1
#include "simdjson/fallback/begin.h"
2
namespace simdjson {
3
namespace SIMDJSON_IMPLEMENTATION {
4
5
simdjson_warn_unused error_code implementation::create_dom_parser_implementation(
6
  size_t capacity,
7
  size_t max_depth,
8
  std::unique_ptr<internal::dom_parser_implementation>& dst
9
0
) const noexcept {
10
0
  dst.reset( new (std::nothrow) dom_parser_implementation() );
11
0
  if (!dst) { return MEMALLOC; }
12
0
  if (auto err = dst->set_capacity(capacity))
13
0
    return err;
14
0
  if (auto err = dst->set_max_depth(max_depth))
15
0
    return err;
16
0
  return SUCCESS;
17
0
}
18
19
} // namespace SIMDJSON_IMPLEMENTATION
20
} // namespace simdjson
21
22
#include "simdjson/fallback/end.h"