aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/client/ut/disk_cache_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/tvmauth/client/ut/disk_cache_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/tvmauth/client/ut/disk_cache_ut.cpp')
-rw-r--r--library/cpp/tvmauth/client/ut/disk_cache_ut.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/tvmauth/client/ut/disk_cache_ut.cpp b/library/cpp/tvmauth/client/ut/disk_cache_ut.cpp
index 7dd851c9b3..48f4877a52 100644
--- a/library/cpp/tvmauth/client/ut/disk_cache_ut.cpp
+++ b/library/cpp/tvmauth/client/ut/disk_cache_ut.cpp
@@ -16,15 +16,15 @@
using namespace NTvmAuth;
-Y_UNIT_TEST_SUITE(ClientDisk) {
- Y_UNIT_TEST(Hash) {
+Y_UNIT_TEST_SUITE(ClientDisk) {
+ Y_UNIT_TEST(Hash) {
TString hash = TDiskReader::GetHash("asd");
UNIT_ASSERT(hash);
UNIT_ASSERT_VALUES_EQUAL(32, hash.size());
UNIT_ASSERT_VALUES_EQUAL("Zj5_qYg31bPlqjBW76z8IV0rCsHmv-iN-McV6ybS1-g", NUtils::Bin2base64url(hash));
}
- Y_UNIT_TEST(Timestamp) {
+ Y_UNIT_TEST(Timestamp) {
time_t t = 100500;
TString s = TDiskWriter::WriteTimestamp(t);
@@ -44,7 +44,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
const TInstant TIME = TInstant::Seconds(100500);
const TString DATA = "oiweuhn \n vw3ut hweoi uhgewproritjhwequtherwoiughfdsv 8ty34q01u 34 1=3";
- Y_UNIT_TEST(ParseData_Ok) {
+ Y_UNIT_TEST(ParseData_Ok) {
TLogger l;
const TInstant time = TInstant::Seconds(1523446554789);
@@ -62,7 +62,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
l.Stream.Str());
}
- Y_UNIT_TEST(ParseData_SmallFile) {
+ Y_UNIT_TEST(ParseData_SmallFile) {
TLogger l;
TString toFile = TDiskWriter::PrepareData(TIME, DATA);
@@ -72,7 +72,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
l.Stream.Str());
}
- Y_UNIT_TEST(ParseData_Changed) {
+ Y_UNIT_TEST(ParseData_Changed) {
TLogger l;
TString toFile = TDiskWriter::PrepareData(TIME, DATA);
@@ -83,7 +83,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
l.Stream.Str());
}
- Y_UNIT_TEST(Read_Ok) {
+ Y_UNIT_TEST(Read_Ok) {
TLogger l;
TDiskReader r(GetFilePath("ok.cache"), &l);
@@ -93,7 +93,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
UNIT_ASSERT_C(l.Stream.Str().find("was successfully read") != TString::npos, l.Stream.Str());
}
- Y_UNIT_TEST(Read_NoFile) {
+ Y_UNIT_TEST(Read_NoFile) {
TLogger l;
TDiskReader r("missing", &l);
@@ -103,7 +103,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
}
#ifdef _unix_
- Y_UNIT_TEST(Read_NoPermitions) {
+ Y_UNIT_TEST(Read_NoPermitions) {
TLogger l;
const TString path = GetWorkPath() + "/123";
@@ -121,7 +121,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
}
#endif
- Y_UNIT_TEST(Write_Ok) {
+ Y_UNIT_TEST(Write_Ok) {
TLogger l;
const TString path = "./tmp_file";
@@ -139,7 +139,7 @@ Y_UNIT_TEST_SUITE(ClientDisk) {
NFs::Remove(path);
}
- Y_UNIT_TEST(Write_NoPermitions) {
+ Y_UNIT_TEST(Write_NoPermitions) {
TLogger l;
TDiskWriter w("/some_file", &l);