| 1510 | //------------------------------------------------------ |
| 1511 | |
| 1512 | void |
| 1513 | testImplementation() |
| 1514 | { |
| 1515 | // insert duplicate keys |
| 1516 | { |
| 1517 | object o({ |
| 1518 | {"a", 1}, |
| 1519 | {"b", true}, |
| 1520 | {"b", {1,2,3}}, |
| 1521 | {"c", "hello"}}); |
| 1522 | BOOST_TEST(o.at("a").as_int64() == 1); |
| 1523 | BOOST_TEST(o.at("b").as_bool() == true); |
| 1524 | BOOST_TEST(o.at("c").as_string() == "hello"); |
| 1525 | } |
| 1526 | |
| 1527 | // destroy key_value_pair array with need_free=false |
| 1528 | { |
| 1529 | monotonic_resource mr; |
| 1530 | object o({ |
| 1531 | {"a", 1}, |
| 1532 | {"b", true}, |
| 1533 | {"b", {1,2,3}}, |
| 1534 | {"c", "hello"}}, &mr); |
| 1535 | } |
| 1536 | } |
| 1537 | |
| 1538 | static |
| 1539 | string_view |
nothing calls this directly
no outgoing calls
no test coverage detected