MCPcopy Create free account
hub / github.com/ceph/ceph / TEST

Function TEST

src/test/osd/types.cc:96–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96TEST(pg_pool_t, encodeDecode)
97{
98 uint64_t features = CEPH_FEATURE_CRUSH_TUNABLES5 |
99 CEPH_FEATURE_INCARNATION_2 |
100 CEPH_FEATURE_PGPOOL3 |
101 CEPH_FEATURE_OSDENC |
102 CEPH_FEATURE_OSD_POOLRESEND |
103 CEPH_FEATURE_NEW_OSDOP_ENCODING |
104 CEPH_FEATUREMASK_SERVER_LUMINOUS |
105 CEPH_FEATUREMASK_SERVER_MIMIC |
106 CEPH_FEATUREMASK_SERVER_NAUTILUS;
107 {
108 std::list<pg_pool_t> pools = pg_pool_t::generate_test_instances();
109 for(auto p1 : pools){
110 bufferlist bl;
111 p1.encode(bl, features);
112 bl.hexdump(std::cout);
113 auto pbl = bl.cbegin();
114 pg_pool_t p2;
115 p2.decode(pbl);
116 compare_pg_pool_t(p1, p2);
117 }
118 }
119
120 {
121 // test reef
122 std::list<pg_pool_t> pools = pg_pool_t::generate_test_instances();
123 for(auto p1 : pools){
124 bufferlist bl;
125 p1.encode(bl, features|CEPH_FEATUREMASK_SERVER_REEF);
126 bl.hexdump(std::cout);
127 auto pbl = bl.cbegin();
128 pg_pool_t p2;
129 p2.decode(pbl);
130 compare_pg_pool_t(p1, p2);
131 }
132 }
133}
134
135TEST(hobject, prefixes0)
136{

Callers

nothing calls this directly

Calls 15

generate_test_instancesFunction · 0.85
compare_pg_pool_tFunction · 0.85
pg_tClass · 0.85
object_tClass · 0.85
osd_reqid_tClass · 0.85
pg_pool_tClass · 0.85
stringifyFunction · 0.85
opt_desc_tClass · 0.85
ci_ref_testFunction · 0.85
mk_manifestFunction · 0.85
mk_deltaFunction · 0.85

Tested by

no test coverage detected