aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/env_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 /util/system/env_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/env_ut.cpp')
-rw-r--r--util/system/env_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/system/env_ut.cpp b/util/system/env_ut.cpp
index e03cc01658..865acf8e12 100644
--- a/util/system/env_ut.cpp
+++ b/util/system/env_ut.cpp
@@ -3,19 +3,19 @@
#include <util/generic/string.h>
#include "env.h"
-Y_UNIT_TEST_SUITE(EnvTest) {
- Y_UNIT_TEST(GetSetEnvTest) {
+Y_UNIT_TEST_SUITE(EnvTest) {
+ Y_UNIT_TEST(GetSetEnvTest) {
TString key = "util_GETENV_TestVar";
TString value = "Some value for env var";
TString def = "Some default value for env var";
- // first of all, it should be clear
+ // first of all, it should be clear
UNIT_ASSERT_VALUES_EQUAL(GetEnv(key), TString());
UNIT_ASSERT_VALUES_EQUAL(GetEnv(key, def), def);
- SetEnv(key, value);
- // set and see what value we get here
- UNIT_ASSERT_VALUES_EQUAL(GetEnv(key), value);
+ SetEnv(key, value);
+ // set and see what value we get here
+ UNIT_ASSERT_VALUES_EQUAL(GetEnv(key), value);
UNIT_ASSERT_VALUES_EQUAL(GetEnv(key, def), value);
- // set empty value
+ // set empty value
SetEnv(key, TString());
UNIT_ASSERT_VALUES_EQUAL(GetEnv(key), TString());
@@ -27,5 +27,5 @@ Y_UNIT_TEST_SUITE(EnvTest) {
UNIT_ASSERT_VALUES_EQUAL(GetEnv(longKey), longValue);
SetEnv(longKey, TString());
UNIT_ASSERT_VALUES_EQUAL(GetEnv(longKey), TString());
- }
+ }
}