diff options
author | quick <quick@yandex-team.ru> | 2022-02-10 16:50:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:33 +0300 |
commit | aa9a314f252b3cd271b4fc5ba7f042ace11ec744 (patch) | |
tree | 6dce39dccda22c864d3f0d4859c48d74de828214 /library | |
parent | 37b41bf0956ce3c4d47e240dc8fc6b5a2e4638c0 (diff) | |
download | ydb-aa9a314f252b3cd271b4fc5ba7f042ace11ec744.tar.gz |
Restoring authorship annotation for <quick@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/messagebus/rain_check/core/task.cpp | 8 | ||||
-rw-r--r-- | library/cpp/messagebus/rain_check/core/task.h | 2 | ||||
-rw-r--r-- | library/cpp/uri/parse.cpp | 2 | ||||
-rw-r--r-- | library/cpp/uri/parse.h | 4 | ||||
-rw-r--r-- | library/cpp/uri/uri.cpp | 2 | ||||
-rw-r--r-- | library/cpp/uri/uri_ut.cpp | 10 |
6 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/messagebus/rain_check/core/task.cpp b/library/cpp/messagebus/rain_check/core/task.cpp index a098437d53..d284e1192d 100644 --- a/library/cpp/messagebus/rain_check/core/task.cpp +++ b/library/cpp/messagebus/rain_check/core/task.cpp @@ -203,10 +203,10 @@ TTaskRunnerBase* TTaskRunnerBase::CurrentTask() { return ThreadCurrentTask; } -ITaskBase* TTaskRunnerBase::CurrentTaskImpl() { - return CurrentTask()->GetImplBase(); -} - +ITaskBase* TTaskRunnerBase::CurrentTaskImpl() { + return CurrentTask()->GetImplBase(); +} + TString TTaskRunnerBase::GetStatusSingleLine() { return TypeName(*Impl); } diff --git a/library/cpp/messagebus/rain_check/core/task.h b/library/cpp/messagebus/rain_check/core/task.h index 7d8778bcda..61d1501a8e 100644 --- a/library/cpp/messagebus/rain_check/core/task.h +++ b/library/cpp/messagebus/rain_check/core/task.h @@ -156,7 +156,7 @@ namespace NRainCheck { bool IsRunningInThisThread() const; void AssertInThisThread() const; static TTaskRunnerBase* CurrentTask(); - static ITaskBase* CurrentTaskImpl(); + static ITaskBase* CurrentTaskImpl(); TString GetStatusSingleLine(); diff --git a/library/cpp/uri/parse.cpp b/library/cpp/uri/parse.cpp index 1db4e008c4..739ccbb3d1 100644 --- a/library/cpp/uri/parse.cpp +++ b/library/cpp/uri/parse.cpp @@ -146,7 +146,7 @@ namespace NUri { const TSection& scheme = Sections[TField::FieldScheme]; Scheme = scheme.IsSet() ? TSchemeInfo::GetKind(scheme.Get()) : TScheme::SchemeEmpty; const TSchemeInfo& schemeInfo = TSchemeInfo::Get(Scheme); - + if (IsRootless()) { // opaque case happens if (schemeInfo.FldReq & TField::FlagHost) diff --git a/library/cpp/uri/parse.h b/library/cpp/uri/parse.h index ca2358e572..8258e4e743 100644 --- a/library/cpp/uri/parse.h +++ b/library/cpp/uri/parse.h @@ -352,8 +352,8 @@ namespace NUri { if (Sections[fld1].IsSet() && Sections[fld2].IsSet() && Sections[fld1].Beg == Sections[fld2].Beg) { Sections[fld1].Reset(); } - } - + } + bool doParse(const char* str_beg, size_t length); TState::EParsed ParseImpl(); }; diff --git a/library/cpp/uri/uri.cpp b/library/cpp/uri/uri.cpp index 56a9a4e5ef..624b5c2760 100644 --- a/library/cpp/uri/uri.cpp +++ b/library/cpp/uri/uri.cpp @@ -540,7 +540,7 @@ namespace NUri { upCount++; continue; } - } + } } if (upCount) { diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp index 2ebd83fc93..eff55cee5b 100644 --- a/library/cpp/uri/uri_ut.cpp +++ b/library/cpp/uri/uri_ut.cpp @@ -175,7 +175,7 @@ namespace NUri { "_", "yandex.ru:443", nullptr}; - + static TState::EParsed answersForCheckHost[] = { TState::ParsedOK, TState::ParsedOK, @@ -186,14 +186,14 @@ namespace NUri { TState::ParsedBadHost, TState::ParsedBadHost, }; - + Y_UNIT_TEST(test_httpURLCheckHost) { for (size_t index = 0; hostsForCheckHost[index]; ++index) { TState::EParsed state = TUri::CheckHost(hostsForCheckHost[index]); UNIT_ASSERT_VALUES_EQUAL(state, answersForCheckHost[index]); } } - + Y_UNIT_TEST(test_httpURLSet) { // set port { @@ -203,7 +203,7 @@ namespace NUri { UNIT_ASSERT_VALUES_EQUAL(parsedUrl.GetPort(), 8080); UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "http://www.host.com:8080/script.cgi?param1=value1¶m2=value2"); } - + // clear port { TUri parsedUrl; @@ -212,7 +212,7 @@ namespace NUri { UNIT_ASSERT_VALUES_EQUAL(parsedUrl.GetPort(), 80); UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "http://www.host.com/script.cgi?param1=value1¶m2=value2"); } - + // change scheme with default port { TUri parsedUrl; |