| 31 | using namespace std; |
| 32 | |
| 33 | TEST(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 | |
| 44 | TEST(ErasureCodeClay, DISABLED_encode_decode) |
| 45 | { |
nothing calls this directly
no test coverage detected