mirror of
https://github.com/nlohmann/json.git
synced 2026-03-09 18:51:26 +00:00
✅ improve coverage
This commit is contained in:
@@ -1851,11 +1851,13 @@ class binary_writer
|
||||
case input_format_t::bon8:
|
||||
oa->write_character(get_bon8_float_prefix(static_cast<float>(n)));
|
||||
break;
|
||||
// LCOV_EXCL_START
|
||||
case input_format_t::bson:
|
||||
case input_format_t::json:
|
||||
case input_format_t::ubjson:
|
||||
default:
|
||||
break;
|
||||
// LCOV_EXCL_STOP
|
||||
}
|
||||
write_number(static_cast<float>(n));
|
||||
}
|
||||
@@ -1872,11 +1874,13 @@ class binary_writer
|
||||
case input_format_t::bon8:
|
||||
oa->write_character(get_bon8_float_prefix(n));
|
||||
break;
|
||||
// LCOV_EXCL_START
|
||||
case input_format_t::bson:
|
||||
case input_format_t::json:
|
||||
case input_format_t::ubjson:
|
||||
default:
|
||||
break;
|
||||
// LCOV_EXCL_STOP
|
||||
}
|
||||
write_number(n);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user