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

Function TEST

src/test/erasure-code/TestErasureCodeClay.cc:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using namespace std;
32
33TEST(ErasureCodeClay, sanity_check_k)
34{
35 ErasureCodeClay clay(g_conf().get_val<std::string>("erasure_code_dir"));
36 ErasureCodeProfile profile;
37 profile["k"] = "1";
38 profile["m"] = "1";
39 ostringstream errors;
40 EXPECT_EQ(-EINVAL, clay.init(profile, &errors));
41 EXPECT_NE(std::string::npos, errors.str().find("must be >= 2"));
42}
43
44TEST(ErasureCodeClay, DISABLED_encode_decode)
45{

Callers

nothing calls this directly

Calls 15

stringifyFunction · 0.85
set_lengthMethod · 0.80
set_type_nameMethod · 0.80
add_bucketMethod · 0.80
set_item_nameMethod · 0.80
insert_itemMethod · 0.80
get_max_devicesMethod · 0.80
do_ruleMethod · 0.80
initMethod · 0.45
findMethod · 0.45
strMethod · 0.45
zeroMethod · 0.45

Tested by

no test coverage detected