MCPcopy Create free account
hub / github.com/boostorg/json / testHash

Method testHash

test/object.cpp:1678–1691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676 }
1677
1678 void
1679 testHash()
1680 {
1681 BOOST_TEST(check_hash_equal(
1682 object(), object({})));
1683 BOOST_TEST(expect_hash_not_equal(
1684 object(), object({{"1",1},{"2",2}})));
1685 BOOST_TEST(check_hash_equal(
1686 object({{"a",1}, {"b",2}, {"c",3}}),
1687 object({{"b",2}, {"c",3}, {"a",1}})));
1688 BOOST_TEST(expect_hash_not_equal(
1689 object({{"a",1}, {"b",2}, {"c",3}}),
1690 object({{"b",2}, {"c",3}})));
1691 }
1692
1693 void
1694 testStrongGurantee()

Callers

nothing calls this directly

Calls 3

check_hash_equalFunction · 0.85
expect_hash_not_equalFunction · 0.85
objectClass · 0.50

Tested by

no test coverage detected