aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/input_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/stream/input_ut.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/input_ut.cpp')
-rw-r--r--util/stream/input_ut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/stream/input_ut.cpp b/util/stream/input_ut.cpp
index dddb657def..4a93f5458e 100644
--- a/util/stream/input_ut.cpp
+++ b/util/stream/input_ut.cpp
@@ -61,7 +61,7 @@ private:
class TNoOutput: public IOutputStream {
public:
- TNoOutput() = default;
+ TNoOutput() = default;
protected:
void DoWrite(const void*, size_t) override {
@@ -70,7 +70,7 @@ protected:
class TSimpleStringInput: public IInputStream {
public:
- TSimpleStringInput(const TString& string)
+ TSimpleStringInput(const TString& string)
: String_(string)
{
}
@@ -89,7 +89,7 @@ protected:
}
private:
- TString String_;
+ TString String_;
};
Y_UNIT_TEST_SUITE(TInputTest) {
@@ -108,7 +108,7 @@ Y_UNIT_TEST_SUITE(TInputTest) {
TSimpleStringInput in("0123456789abc");
- TString t;
+ TString t;
UNIT_ASSERT_VALUES_EQUAL(in.ReadTo(t, '7'), 8);
UNIT_ASSERT_VALUES_EQUAL(t, "0123456");
UNIT_ASSERT_VALUES_EQUAL(in.ReadTo(t, 'z'), 5);
@@ -120,7 +120,7 @@ Y_UNIT_TEST_SUITE(TInputTest) {
Y_UNIT_TEST(TestReadLine) {
TSimpleStringInput in("1\n22\n333");
- TString t;
+ TString t;
UNIT_ASSERT_VALUES_EQUAL(in.ReadLine(t), 2);
UNIT_ASSERT_VALUES_EQUAL(t, "1");
UNIT_ASSERT_VALUES_EQUAL(in.ReadLine(t), 3);
@@ -148,7 +148,7 @@ Y_UNIT_TEST_SUITE(TInputTest) {
stdIn.ForInput(text,
[=] {
- TString value;
+ TString value;
Cin.ReadTo(value, delim);
UNIT_ASSERT_VALUES_EQUAL(value, expectedValue);
});