Mark the cases of the view's serializer that tests cannot reach
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
2 files changed
+14
-14
No files matched your search
@@ -259,12 +259,12 @@ class view_serializer
|
|||||||
write_float(float_value<number_float_t>(m_doc.str(n), n));
|
write_float(float_value<number_float_t>(m_doc.str(n), n));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case value_t::object:
|
case value_t::object: // LCOV_EXCL_LINE (containers are written by dump())
|
||||||
case value_t::array:
|
case value_t::array: // LCOV_EXCL_LINE
|
||||||
case value_t::binary:
|
case value_t::binary: // LCOV_EXCL_LINE (not in a document)
|
||||||
case value_t::discarded:
|
case value_t::discarded: // LCOV_EXCL_LINE
|
||||||
default:
|
default: // LCOV_EXCL_LINE
|
||||||
break;
|
break; // LCOV_EXCL_LINE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -399,7 +399,7 @@ class view_serializer
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_out.put(reinterpret_cast<const char*>(bytes), len); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
|
m_out.put(reinterpret_cast<const char*>(bytes), len); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast) LCOV_EXCL_LINE (printable characters are copied in runs)
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_u_escape(std::uint32_t u)
|
void write_u_escape(std::uint32_t u)
|
||||||
|
|||||||
@@ -2832,12 +2832,12 @@ class view_serializer
|
|||||||
write_float(float_value<number_float_t>(m_doc.str(n), n));
|
write_float(float_value<number_float_t>(m_doc.str(n), n));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case value_t::object:
|
case value_t::object: // LCOV_EXCL_LINE (containers are written by dump())
|
||||||
case value_t::array:
|
case value_t::array: // LCOV_EXCL_LINE
|
||||||
case value_t::binary:
|
case value_t::binary: // LCOV_EXCL_LINE (not in a document)
|
||||||
case value_t::discarded:
|
case value_t::discarded: // LCOV_EXCL_LINE
|
||||||
default:
|
default: // LCOV_EXCL_LINE
|
||||||
break;
|
break; // LCOV_EXCL_LINE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2972,7 +2972,7 @@ class view_serializer
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_out.put(reinterpret_cast<const char*>(bytes), len); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
|
m_out.put(reinterpret_cast<const char*>(bytes), len); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast) LCOV_EXCL_LINE (printable characters are copied in runs)
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_u_escape(std::uint32_t u)
|
void write_u_escape(std::uint32_t u)
|
||||||
|
|||||||
Reference in new issue
Block a user