MCPcopy Create free account
hub / github.com/apache/impala / SetUp

Method SetUp

be/src/kudu/security/crypto-test.cc:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void SetUp() override {
61 ASSERT_OK(env_->CreateDir(pem_dir_));
62 ASSERT_OK(WriteStringToFile(env_, kCaPrivateKey, private_key_file_));
63 ASSERT_OK(WriteStringToFile(env_, kCaPublicKey, public_key_file_));
64 ASSERT_OK(WriteStringToFile(env_,
65 string(kCaPrivateKey, strlen(kCaPrivateKey) / 2),
66 corrupted_private_key_file_));
67 ASSERT_OK(WriteStringToFile(env_,
68 string(kCaPublicKey, strlen(kCaPublicKey) / 2),
69 corrupted_public_key_file_));
70 }
71
72 protected:
73 template<typename Key>

Callers

nothing calls this directly

Calls 2

CreateDirMethod · 0.80
WriteStringToFileFunction · 0.50

Tested by

no test coverage detected