aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/gtest_extensions/probe.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /library/cpp/testing/gtest_extensions/probe.h
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
downloadydb-4e839db24a3bbc9f1c610c43d6faaaa99824dcca.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/gtest_extensions/probe.h')
-rw-r--r--library/cpp/testing/gtest_extensions/probe.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/testing/gtest_extensions/probe.h b/library/cpp/testing/gtest_extensions/probe.h
index 7d1fee83d3..019759d09e 100644
--- a/library/cpp/testing/gtest_extensions/probe.h
+++ b/library/cpp/testing/gtest_extensions/probe.h
@@ -2,15 +2,15 @@
#include <util/system/yassert.h>
-#include <library/cpp/testing/common/probe.h>
-
+#include <library/cpp/testing/common/probe.h>
+
#include <gtest/gtest.h>
#include <gmock/gmock.h>
-namespace testing {
- using NTesting::TProbe;
- using NTesting::TProbeState;
- using NTesting::TCoercibleToProbe;
+namespace testing {
+ using NTesting::TProbe;
+ using NTesting::TProbeState;
+ using NTesting::TCoercibleToProbe;
// A helper functor which extracts from probe-like objectss their state.
struct TProbableTraits {
@@ -43,13 +43,13 @@ namespace testing {
MATCHER(IsAlive, "is alive") {
Y_UNUSED(result_listener);
- const auto& state = TProbableTraits::ExtractState(arg);
+ const auto& state = TProbableTraits::ExtractState(arg);
return state.Destructors < state.Constructors + state.CopyConstructors + state.CopyAssignments;
}
MATCHER(IsDead, "is dead") {
Y_UNUSED(result_listener);
- const auto& state = TProbableTraits::ExtractState(arg);
+ const auto& state = TProbableTraits::ExtractState(arg);
return state.Destructors == state.Constructors + state.CopyConstructors + state.CopyAssignments;
}
@@ -57,25 +57,25 @@ namespace testing {
PrintToString(copyCount) + " copy constructors and " + \
PrintToString(moveCount) + " move constructors were called") {
Y_UNUSED(result_listener);
- const auto& state = TProbableTraits::ExtractState(arg);
+ const auto& state = TProbableTraits::ExtractState(arg);
return state.CopyConstructors == copyCount && state.MoveConstructors == moveCount;
}
MATCHER(NoCopies, "no copies were made") {
Y_UNUSED(result_listener);
- const auto& state = TProbableTraits::ExtractState(arg);
+ const auto& state = TProbableTraits::ExtractState(arg);
return 0 == state.CopyConstructors && 0 == state.CopyAssignments;
}
MATCHER(NoMoves, "no moves were made") {
Y_UNUSED(result_listener);
- const auto& state = TProbableTraits::ExtractState(arg);
+ const auto& state = TProbableTraits::ExtractState(arg);
return 0 == state.MoveConstructors && 0 == state.MoveAssignments;
}
MATCHER(NoAssignments, "no assignments were made") {
Y_UNUSED(result_listener);
- const auto& state = TProbableTraits::ExtractState(arg);
+ const auto& state = TProbableTraits::ExtractState(arg);
return 0 == state.CopyAssignments && 0 == state.MoveAssignments;
}
}