/Users/deen/code/yugabyte-db/src/yb/util/test_macros.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // |
18 | | // The following only applies to changes made to this file as part of YugaByte development. |
19 | | // |
20 | | // Portions Copyright (c) YugaByte, Inc. |
21 | | // |
22 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
23 | | // in compliance with the License. You may obtain a copy of the License at |
24 | | // |
25 | | // http://www.apache.org/licenses/LICENSE-2.0 |
26 | | // |
27 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
28 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
29 | | // or implied. See the License for the specific language governing permissions and limitations |
30 | | // under the License. |
31 | | // |
32 | | #ifndef YB_UTIL_TEST_MACROS_H |
33 | | #define YB_UTIL_TEST_MACROS_H |
34 | | |
35 | | #include <set> |
36 | | #include <sstream> |
37 | | #include <string> |
38 | | |
39 | | #include <boost/preprocessor/cat.hpp> |
40 | | |
41 | | #include <gtest/gtest.h> // For SUCCEED/FAIL |
42 | | |
43 | | #include "yb/util/tostring.h" |
44 | | #include "yb/gutil/stl_util.h" // For VectorToSet |
45 | | |
46 | | namespace yb { |
47 | | namespace util { |
48 | | |
49 | | template<typename T> |
50 | 0 | std::string TEST_SetDifferenceStr(const std::set<T>& expected, const std::set<T>& actual) { |
51 | 0 | std::set<T> only_in_expected, only_in_actual; |
52 | 0 | for (const auto& expected_item : expected) { |
53 | 0 | if (!actual.count(expected_item)) { |
54 | 0 | only_in_expected.insert(expected_item); |
55 | 0 | } |
56 | 0 | } |
57 | |
|
58 | 0 | for (const auto& actual_item : actual) { |
59 | 0 | if (!expected.count(actual_item)) { |
60 | 0 | only_in_actual.insert(actual_item); |
61 | 0 | } |
62 | 0 | } |
63 | |
|
64 | 0 | std::ostringstream result; |
65 | 0 | if (!only_in_expected.empty()) { |
66 | 0 | result << "only in the expected set: " << yb::ToString(only_in_expected); |
67 | 0 | } |
68 | 0 | if (!only_in_actual.empty()) { |
69 | 0 | if (result.tellp() > 0) { |
70 | 0 | result << "; "; |
71 | 0 | } |
72 | 0 | result << "only in the actual set: " << yb::ToString(only_in_actual); |
73 | 0 | } |
74 | 0 | if (result.tellp() == 0) { |
75 | 0 | return "no differences"; |
76 | 0 | } |
77 | 0 | return result.str(); |
78 | 0 | } Unexecuted instantiation: _ZN2yb4util21TEST_SetDifferenceStrINS_4OpIdEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKNS3_3setIT_NS3_4lessISB_EENS7_ISB_EEEESH_ Unexecuted instantiation: _ZN2yb4util21TEST_SetDifferenceStrIiEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS2_3setIT_NS2_4lessISA_EENS6_ISA_EEEESG_ Unexecuted instantiation: _ZN2yb4util21TEST_SetDifferenceStrIxEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS2_3setIT_NS2_4lessISA_EENS6_ISA_EEEESG_ |
79 | | |
80 | | } // namespace util |
81 | | } // namespace yb |
82 | | |
83 | | // ASSERT_NO_FATAL_FAILURE is just too long to type. |
84 | | #define NO_FATALS(expr) \ |
85 | 3 | ASSERT_NO_FATAL_FAILURE(expr) |
86 | | |
87 | | // Detect fatals in the surrounding scope. NO_FATALS() only checks for fatals |
88 | | // in the expression passed to it. |
89 | | #define NO_PENDING_FATALS() \ |
90 | 14 | if (testing::Test::HasFatalFailure()) { return; } |
91 | | |
92 | | // ASSERT_NO_FATAL_FAILURE is just too long to type. |
93 | 461k | #define ASSERT_NO_FATALS ASSERT_NO_FATAL_FAILURE |
94 | | |
95 | | // We are using "const auto" for storing the status so that the same macros work for both YB and |
96 | | // RocksDB's Status types. |
97 | | |
98 | 29.7M | #define ASSERT_OK(status) do { \ |
99 | 69.4k | auto&& _assert_status = (status); \ Unexecuted instantiation: backup-txn-test.cc:_ZZN2yb6client25BackupTxnTest_Simple_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: backup-txn-test.cc:_ZZN2yb6client56BackupTxnTest_PointInTimeRestoreBeforeHistoryCutoff_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: backup-txn-test.cc:_ZZN2yb6client29BackupTxnTest_ImportMeta_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: client-test.cc:_ZZN2yb6client36ClientTest_TestReadFromFollower_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: client-test.cc:_ZZN2yb6client33ClientTest_RefreshPartitions_Test8TestBodyEvENK3$_9clEv Unexecuted instantiation: client-test.cc:_ZZN2yb6client33ClientTest_RefreshPartitions_Test8TestBodyEvENK4$_10clEv Unexecuted instantiation: ql-stress-test.cc:_ZZN2yb6client53QLStressTest_ShortTimeLeaderDoesNotReplicateNoOp_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: ql-stress-test.cc:_ZZN2yb6client55QLStressTest_OldLeaderCatchUpAfterNetworkPartition_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: ql-stress-test.cc:_ZZN2yb6client12QLStressTest18TestWriteRejectionEvENK3$_5clEv Unexecuted instantiation: ql-stress-test.cc:_ZZN2yb6client37QLStressTest_LongRemoteBootstrap_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: ql-stress-test.cc:_ZZN2yb6client37QLStressTest_LongRemoteBootstrap_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: ql-stress-test.cc:_ZZN2yb6client37QLStressTest_LongRemoteBootstrap_Test8TestBodyEvENK3$_9clEv Unexecuted instantiation: ql-tablet-test.cc:_ZZN2yb6client41QLTabletTest_LastAppliedOpIdTracking_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: ql-transaction-test.cc:_ZZN2yb6client74QLTransactionTest_ResolveIntentsWriteReadWithinTransactionAndRollback_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: ql-transaction-test.cc:_ZZN2yb6client49QLTransactionTest_IntentsCleanupAfterRestart_Test8TestBodyEvENK3$_8clEv Unexecuted instantiation: ql-transaction-test.cc:_ZZN2yb6client38QLTransactionTest_RemoteBootstrap_Test8TestBodyEvENK4$_15clEv Unexecuted instantiation: ql-transaction-test.cc:_ZZN2yb6client43QLTransactionTest_DeleteFlushedIntents_Test8TestBodyEvENK4$_17clEv Unexecuted instantiation: ql-transaction-test.cc:_ZZN2yb6client45QLTransactionTest_DeleteTableDuringWrite_Test8TestBodyEvENK4$_19clEv Unexecuted instantiation: serializable-txn-test.cc:_ZZN2yb6client45SerializableTxnTest_NonConflictingWrites_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: snapshot-schedule-test.cc:_ZZN2yb6client34SnapshotScheduleTest_Snapshot_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: snapshot-schedule-test.cc:_ZZN2yb6client34SnapshotScheduleTest_Snapshot_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: snapshot-schedule-test.cc:_ZZN2yb6client31SnapshotScheduleTest_Index_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: snapshot-schedule-test.cc:_ZZN2yb6client42SnapshotScheduleTest_RemoveNewTablets_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: snapshot-txn-test.cc:_ZZN2yb6client15SnapshotTxnTest19TestRemoteBootstrapEvENK4$_10clEv Unexecuted instantiation: snapshot-txn-test.cc:_ZZN2yb6client15SnapshotTxnTest19TestRemoteBootstrapEvENK4$_11clEv Unexecuted instantiation: snapshot-txn-test.cc:_ZZN2yb6client15SnapshotTxnTest19TestRemoteBootstrapEvENK4$_12clEv Unexecuted instantiation: snapshot-txn-test.cc:_ZZN2yb6client43SnapshotTxnTest_TruncateDuringShutdown_Test8TestBodyEvENK4$_14clEv _ZZN2yb9consensus27TestRaftConsensusQueueIface30WaitForMajorityReplicatedIndexExNS_9MonoDeltaEENKUlvE_clEv Line | Count | Source | 99 | 70 | auto&& _assert_status = (status); \ |
consensus_queue-test.cc:_ZZN2yb9consensus56ConsensusQueueTest_TestQueueMovesWatermarksBackward_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: shared_lock_manager-test.cc:_ZZN2yb5docdb42SharedLockManagerTest_QuickLockUnlock_Test8TestBodyEvENK3$_1clEv cassandra_cpp_driver-test.cc:_ZZN2yb60CppCassandraDriverTest_TestCreateIdxTripleCollisionTest_Test8TestBodyEvENK3$_4clEv Line | Count | Source | 99 | 3 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK3$_5clEv Line | Count | Source | 99 | 3 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK3$_7clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK3$_8clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK3$_9clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK4$_10clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb54CppCassandraDriverTest_TestCreateUniqueIndexFails_Test8TestBodyEvENK4$_11clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
cassandra_cpp_driver-test.cc:_ZZN2yb59CppCassandraDriverTest_YQLPartitionsVtableCacheRefresh_Test8TestBodyEvENK4$_16clEv Line | Count | Source | 99 | 405 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: cassandra_cpp_driver-test.cc:_ZZZN2yb37CppCassandraDriverTest_Rejection_Test8TestBodyEvENK4$_17clEvENKUlvE_clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc12_GLOBAL__N_115WaitForCDCIndexERKNSt3__110shared_ptrINS_6tablet10TabletPeerEEExiENK4$_18clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc31VerifyStreamDeletedFromCdcStateEPNS_6client8YBClientERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEESC_iENK3$_0clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc51CDCServiceTest_TestMetricsOnDeletedReplication_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc51CDCServiceTest_TestMetricsOnDeletedReplication_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc73CDCServiceTestMultipleServersOneTablet_TestMetricsAfterServerFailure_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc73CDCServiceTestMultipleServersOneTablet_TestMetricsAfterServerFailure_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc64CDCServiceTestMultipleServersOneTablet_TestUpdateLagMetrics_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc64CDCServiceTestMultipleServersOneTablet_TestUpdateLagMetrics_Test8TestBodyEvENK3$_8clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc64CDCServiceTestMultipleServersOneTablet_TestUpdateLagMetrics_Test8TestBodyEvENK3$_9clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc64CDCServiceTestMultipleServersOneTablet_TestUpdateLagMetrics_Test8TestBodyEvENK4$_10clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc64CDCServiceTestMultipleServersOneTablet_TestUpdateLagMetrics_Test8TestBodyEvENK4$_11clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc43CDCServiceTest_TestOnlyGetLocalChanges_Test8TestBodyEvENK4$_13clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc82CDCServiceTestDurableMinReplicatedIndex_TestLogCDCMinReplicatedIndexIsDurable_Test8TestBodyEvENK4$_15clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc70CDCServiceTestThreeServers_TestNewLeaderUpdatesLogCDCAppliedIndex_Test8TestBodyEvENK4$_16clEv Unexecuted instantiation: cdc_service-int-test.cc:_ZZN2yb3cdc70CDCServiceTestThreeServers_TestNewLeaderUpdatesLogCDCAppliedIndex_Test8TestBodyEvENK4$_17clEv Unexecuted instantiation: cdc_service-txn-test.cc:_ZZN2yb3cdc58CDCServiceTxnTest_TestGetChangesForPendingTransaction_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: cdc_service-txn-test.cc:_ZZN2yb3cdc56CDCServiceTxnTestEnableReplicateIntents_MetricsTest_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: compaction-test.cc:_ZZN2yb7tserver14CompactionTest27TestCompactionAfterTruncateEvENK3$_0clEv Unexecuted instantiation: compaction-test.cc:_ZZN2yb7tserver14CompactionTest30TestCompactionWithoutFrontiersEmmbENK3$_1clEv Unexecuted instantiation: compaction-test.cc:_ZZN2yb7tserver48CompactionTestWithTTL_CompactionAfterExpiry_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: compaction-test.cc:_ZZN2yb7tserver21FileExpirationWithRF331WaitUntilAllCommittedOpsAppliedENS_9MonoDeltaEENK3$_3clEv Unexecuted instantiation: cql-index-test.cc:_ZZN2yb39CqlIndexTest_ConcurrentIndexUpdate_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: cql-index-test.cc:_ZZN2yb39CqlIndexTest_ConcurrentIndexUpdate_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: _ZZN2yb18CqlTabletSplitTest31WaitUntilAllCommittedOpsAppliedENS_9MonoDeltaEENKUlvE_clEv Unexecuted instantiation: cql-tablet-split-test.cc:_ZZN2yb18CqlTabletSplitTest26CompleteSecondaryIndexTestEiNS_9MonoDeltaEENK3$_1clEv create-table-itest.cc:_ZZN2yb56CreateTableITest_TableColocationRemoteBootstrapTest_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
create-table-itest.cc:_ZZN2yb51CreateTableITest_TablegroupRemoteBootstrapTest_Test8TestBodyEvENK3$_2clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
create-table-itest.cc:_ZZN2yb58CreateTableITest_OnlyMajorityReplicasWithoutPlacement_Test8TestBodyEvENK3$_5clEv Line | Count | Source | 99 | 39 | auto&& _assert_status = (status); \ |
create-table-itest.cc:_ZZN2yb58CreateTableITest_OnlyMajorityReplicasWithoutPlacement_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 112 | auto&& _assert_status = (status); \ |
create-table-itest.cc:_ZZN2yb55CreateTableITest_OnlyMajorityReplicasWithPlacement_Test8TestBodyEvENK3$_7clEv Line | Count | Source | 99 | 39 | auto&& _assert_status = (status); \ |
create-table-itest.cc:_ZZN2yb55CreateTableITest_OnlyMajorityReplicasWithPlacement_Test8TestBodyEvENK3$_8clEv Line | Count | Source | 99 | 33 | auto&& _assert_status = (status); \ |
create-table-itest.cc:_ZZN2yb55CreateTableITest_OnlyMajorityReplicasWithPlacement_Test8TestBodyEvENK3$_9clEv Line | Count | Source | 99 | 143 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: delete_table-test.cc:_ZZN2yb15DeleteTableTest28WaitForLoadBalanceCompletionENS_9MonoDeltaEENK3$_0clEv Unexecuted instantiation: delete_table-test.cc:_ZZN2yb15DeleteTableTest28WaitForLoadBalanceCompletionENS_9MonoDeltaEENK3$_1clEv Unexecuted instantiation: delete_table-test.cc:_ZZN2yb59DeleteTableTest_TestPendingDeleteStateClearedOnFailure_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: delete_table-test.cc:_ZZN2yb62DeleteTableTest_DeleteTableWithConcurrentWritesNoRestarts_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: delete_table-test.cc:_ZZN2yb45DeleteTableTest_TestRemoveUnknownTablets_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: delete_table-test.cc:_ZZN2yb37DeleteTableTest_DeleteWithDeadTS_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: _ZZN2yb7tserver10FlushITest12WriteAtLeastEmENKUlvE_clEv Unexecuted instantiation: _ZZN2yb7tserver10FlushITest20WriteUntilCompactionEvENKUlvE_clEv Unexecuted instantiation: _ZZN2yb7tserver10FlushITest20WriteUntilCompactionEvENKUlvE0_clEv Unexecuted instantiation: flush-test.cc:_ZZN2yb7tserver32FlushITest_TestFlushHappens_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: flush-test.cc:_ZZN2yb7tserver10FlushITest49TestFlushPicksOldestInactiveTabletAfterCompactionEbENK3$_1clEv Unexecuted instantiation: kv_table-test.cc:_ZZN2yb17integration_tests26KVTableTest_BigValues_Test8TestBodyEvENK3$_0clEv kv_table_ts_failover_write_if-test.cc:_ZZN2yb67KVTableTsFailoverWriteIfTest_KillTabletServerDuringReplication_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 99 | 2 | auto&& _assert_status = (status); \ |
kv_table_ts_failover_write_if-test.cc:_ZZN2yb67KVTableTsFailoverWriteIfTest_KillTabletServerDuringReplication_Test8TestBodyEvENK3$_3clEv Line | Count | Source | 99 | 75 | auto&& _assert_status = (status); \ |
kv_table_ts_failover_write_if-test.cc:_ZZN2yb67KVTableTsFailoverWriteIfTest_KillTabletServerDuringReplication_Test8TestBodyEvENK3$_4clEv Line | Count | Source | 99 | 37 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests42LoadBalancerTest_PreferredZoneAddNode_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 99 | 62 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests42LoadBalancerTest_PreferredZoneAddNode_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 99 | 85 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests40LoadBalancerTest_IsLoadBalancerIdle_Test8TestBodyEvENK3$_2clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests40LoadBalancerTest_IsLoadBalancerIdle_Test8TestBodyEvENK3$_3clEv Line | Count | Source | 99 | 74 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests54LoadBalancerTest_PendingLeaderStepdownRegressTest_Test8TestBodyEvENK3$_5clEv Line | Count | Source | 99 | 53 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests54LoadBalancerTest_PendingLeaderStepdownRegressTest_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests54LoadBalancerTest_PendingLeaderStepdownRegressTest_Test8TestBodyEvENK3$_7clEv Line | Count | Source | 99 | 71 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests35LoadBalancerTest_MultiZoneTest_Test8TestBodyEvENK3$_8clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
load_balancer-test.cc:_ZZN2yb17integration_tests35LoadBalancerTest_MultiZoneTest_Test8TestBodyEvENK3$_9clEv Line | Count | Source | 99 | 84 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests12_GLOBAL__N_118WaitForReplicaOnTSEPNS_11MiniClusterERKNS_6client11YBTableNameERKNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEiENK3$_5clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests12_GLOBAL__N_120WaitLoadBalancerIdleEPNS_6client8YBClientEENK3$_7clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests12_GLOBAL__N_122WaitLoadBalancerActiveEPNS_6client8YBClientEENK3$_6clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests74LoadBalancerMiniClusterTest_UninitializedTSDescriptorOnPendingAddTest_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests74LoadBalancerMiniClusterTest_UninitializedTSDescriptorOnPendingAddTest_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests74LoadBalancerMiniClusterTest_UninitializedTSDescriptorOnPendingAddTest_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests52LoadBalancerMiniClusterTest_NoLBOnDeletedTables_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: load_balancer_mini_cluster-test.cc:_ZZN2yb17integration_tests52LoadBalancerMiniClusterTest_NoLBOnDeletedTables_Test8TestBodyEvENK3$_4clEv load_balancer_multi_table-test.cc:_ZZN2yb17integration_tests60LoadBalancerMultiTableTest_TestDeadNodesLeaderBalancing_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 99 | 8 | auto&& _assert_status = (status); \ |
load_balancer_multi_table-test.cc:_ZZN2yb17integration_tests59LoadBalancerMultiTableTest_TestLBWithDeadBlacklistedTS_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
load_balancer_multi_table-test.cc:_ZZN2yb17integration_tests59LoadBalancerMultiTableTest_TestLBWithDeadBlacklistedTS_Test8TestBodyEvENK3$_2clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
load_balancer_multi_table-test.cc:_ZZN2yb17integration_tests53LoadBalancerMultiTableTest_GlobalLeaderBalancing_Test8TestBodyEvENK3$_3clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
_ZZN2yb17integration_tests31LoadBalancerPlacementPolicyTest19WaitForLoadBalancerEvENKUlvE_clEv Line | Count | Source | 99 | 910 | auto&& _assert_status = (status); \ |
_ZZN2yb17integration_tests31LoadBalancerPlacementPolicyTest19WaitForLoadBalancerEvENKUlvE0_clEv Line | Count | Source | 99 | 445 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: load_balancer_respect_affinity-test.cc:_ZZN2yb17integration_tests65LoadBalancerRespectAffinityTest_TransactionUsePreferredZones_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: load_balancer_respect_affinity-test.cc:_ZZN2yb17integration_tests65LoadBalancerRespectAffinityTest_TransactionUsePreferredZones_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: load_balancer_respect_affinity-test.cc:_ZZN2yb17integration_tests65LoadBalancerRespectAffinityTest_TransactionUsePreferredZones_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: master-partitioned-test.cc:_ZZN2yb71MasterPartitionedTest_CauseMasterLeaderStepdownWithTasksInProgress_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: master-partitioned-test.cc:_ZZN2yb71MasterPartitionedTest_CauseMasterLeaderStepdownWithTasksInProgress_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: master-partitioned-test.cc:_ZZN2yb71MasterPartitionedTest_CauseMasterLeaderStepdownWithTasksInProgress_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: master-partitioned-test.cc:_ZZN2yb71MasterPartitionedTest_CauseMasterLeaderStepdownWithTasksInProgress_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: master-partitioned-test.cc:_ZZN2yb51MasterPartitionedTest_VerifyOldLeaderStepsDown_Test8TestBodyEvENK3$_5clEv master_failover-itest.cc:_ZZN2yb6client50MasterFailoverTest_TestFailoverAfterTsFailure_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
master_failover-itest.cc:_ZZN2yb6client50MasterFailoverTest_TestFailoverAfterTsFailure_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
master_failover-itest.cc:_ZZN2yb6client50MasterFailoverTest_TestFailoverAfterTsFailure_Test8TestBodyEvENK3$_2clEv Line | Count | Source | 99 | 11 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: master_failover-itest.cc:_ZZN2yb6client46MasterFailoverTest_TestLoadMoveCompletion_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: master_failover-itest.cc:_ZZN2yb6client52MasterFailoverTest_TestFailoverWithReadReplicas_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: master_path_handlers-itest.cc:_ZZN2yb6master45MasterPathHandlersItest_TestDeadTServers_Test8TestBodyEvENK3$_0clEv raft_consensus-itest.cc:_ZZN2yb7tserver33RaftConsensusITest_SplitOpId_Test8TestBodyEvENK3$_4clEv Line | Count | Source | 99 | 9 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: raft_consensus-itest.cc:_ZZN2yb7tserver33RaftConsensusITest_SplitOpId_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: raft_consensus-itest.cc:_ZZN2yb7tserver33RaftConsensusITest_SplitOpId_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: raft_consensus-itest.cc:_ZZN2yb7tserver33RaftConsensusITest_SplitOpId_Test8TestBodyEvENK3$_8clEv remote_bootstrap-itest.cc:_ZZN2yb20RemoteBootstrapITest23CheckCheckpointsClearedEvENK3$_0clEv Line | Count | Source | 99 | 664 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: _ZZN2yb12SnapshotTest19VerifySnapshotFilesERKNS_17StronglyTypedUuidINS_17TxnSnapshotId_TagEEEENKUlvE0_clEv Unexecuted instantiation: sys_catalog_respect_affinity-test.cc:_ZZN2yb17integration_tests55SysCatalogRespectAffinityTest_TestNoPreferredZones_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: sys_catalog_respect_affinity-test.cc:_ZZN2yb17integration_tests55SysCatalogRespectAffinityTest_TestNoPreferredZones_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: sys_catalog_respect_affinity-test.cc:_ZZN2yb17integration_tests54SysCatalogRespectAffinityTest_TestInPreferredZone_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: sys_catalog_respect_affinity-test.cc:_ZZN2yb17integration_tests58SysCatalogRespectAffinityTest_TestMoveToPreferredZone_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: sys_catalog_respect_affinity-test.cc:_ZZN2yb17integration_tests62SysCatalogRespectAffinityTest_TestPreferredZoneMasterDown_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: sys_catalog_respect_affinity-test.cc:_ZZN2yb17integration_tests61SysCatalogRespectAffinityTest_TestMultiplePreferredZones_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb55TabletSplitITest_TestInitiatesCompactionAfterSplit_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb46TabletSplitITest_TestLoadBalancerAndSplit_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb45TabletSplitITest_TestBackfillDuringSplit_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb45TabletSplitITest_TestSplitDuringBackfill_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb45TabletSplitITest_TestSplitDuringBackfill_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb52TabletSplitITest_SplitTabletDuringReadWriteLoad_Test8TestBodyEvENK3$_8clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb16TabletSplitITest22SplitClientRequestsIdsEiENK3$_9clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb48TabletSplitITest_SplitSingleTabletWithLimit_Test8TestBodyEvENK4$_10clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb80AutomaticTabletSplitITest_AutomaticTabletSplittingWaitsForAllPeersCompacted_Test8TestBodyEvENK4$_12clEv Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb71AutomaticTabletSplitITest_AutomaticTabletSplittingMovesToNextPhase_Test8TestBodyEvENK4$_14clEv tablet-split-itest.cc:_ZZN2yb65TabletSplitExternalMiniClusterITest_CrashesAfterChildLogCopy_Test8TestBodyEvENK4$_18clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
tablet-split-itest.cc:_ZZN2yb65TabletSplitExternalMiniClusterITest_CrashesAfterChildLogCopy_Test8TestBodyEvENK4$_19clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
tablet-split-itest.cc:_ZZN2yb87TabletSplitExternalMiniClusterITest_RemoteBootstrapsFromNodeWithUncommittedSplitOp_Test8TestBodyEvENK4$_22clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
tablet-split-itest.cc:_ZZN2yb87TabletSplitExternalMiniClusterITest_RemoteBootstrapsFromNodeWithUncommittedSplitOp_Test8TestBodyEvENK4$_23clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb46TabletSplitSystemRecordsITest_GetSplitKey_Test8TestBodyEvENK4$_25clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise62TwoDCTest_SetupUniverseReplicationWithProducerBootstrapId_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise47TwoDCTest_BootstrapAndSetupLargeTableCount_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise42TwoDCTest_PollAndObserveIdleDampening_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: twodc-test.cc:_ZZZN2yb10enterprise42TwoDCTest_PollAndObserveIdleDampening_Test8TestBodyEvENK3$_2clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise63TwoDCTestWithEnableIntentsReplication_MultipleTransactions_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise63TwoDCTestWithEnableIntentsReplication_MultipleTransactions_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise69TwoDCTestWithEnableIntentsReplication_CleanupAbortedTransactions_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise69TwoDCTestWithEnableIntentsReplication_CleanupAbortedTransactions_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise69TwoDCTestWithEnableIntentsReplication_CleanupAbortedTransactions_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise66TwoDCTestWithEnableIntentsReplication_NoCleanupOfFlushedFiles_Test8TestBodyEvENK3$_8clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise46TwoDCTest_AlterUniverseReplicationMasters_Test8TestBodyEvENK4$_10clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise46TwoDCTest_AlterUniverseReplicationMasters_Test8TestBodyEvENK4$_11clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise45TwoDCTest_AlterUniverseReplicationTables_Test8TestBodyEvENK4$_12clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise45TwoDCTest_AlterUniverseReplicationTables_Test8TestBodyEvENK4$_13clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise44TwoDCTest_TestProducerUniverseExpansion_Test8TestBodyEvENK4$_14clEv Unexecuted instantiation: twodc-test.cc:_ZZN2yb10enterprise50TwoDCTest_TestInsertDeleteWorkloadWithRestart_Test8TestBodyEvENK4$_17clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise36TwoDCYsqlTest_SimpleReplication_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise36TwoDCYsqlTest_SimpleReplication_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise66TwoDCYsqlTest_SetupUniverseReplicationWithProducerBootstrapId_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise47TwoDCYsqlTest_ColocatedDatabaseReplication_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise47TwoDCYsqlTest_ColocatedDatabaseReplication_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise47TwoDCYsqlTest_ColocatedDatabaseReplication_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise47TwoDCYsqlTest_ColocatedDatabaseReplication_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise40TwoDCYsqlTest_TablegroupReplication_Test8TestBodyEvENK3$_7clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise40TwoDCYsqlTest_TablegroupReplication_Test8TestBodyEvENK3$_8clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise36TwoDCYsqlTest_DeleteTableChecks_Test8TestBodyEvENK3$_9clEv Unexecuted instantiation: twodc_ysql-test.cc:_ZZN2yb10enterprise38TwoDCYsqlTest_TruncateTableChecks_Test8TestBodyEvENK4$_10clEv Unexecuted instantiation: xcluster-tablet-split-itest.cc:_ZZN2yb76NotSupportedTabletSplitITest_SplittingWithXClusterReplicationOnProducer_Test8TestBodyEvENK3$_1clEv _ZZN2yb17integration_tests12YBTsCliITest13WaitForTabletERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEENKUlvE_clEv Line | Count | Source | 99 | 9 | auto&& _assert_status = (status); \ |
yb-ts-cli-itest.cc:_ZZN2yb17integration_tests28YBTsCliITest_MoveTablet_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
yb-ts-cli-itest.cc:_ZZN2yb17integration_tests28YBTsCliITest_MoveTablet_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 99 | 113 | auto&& _assert_status = (status); \ |
master-test.cc:_ZZN2yb6master42MasterTest_TestNamespaceCreateFailure_Test8TestBodyEvENK3$_5clEv Line | Count | Source | 99 | 63 | auto&& _assert_status = (status); \ |
master-test.cc:_ZZZN2yb6master42MasterTest_TestNamespaceCreateFailure_Test8TestBodyEvENK3$_5clEvENKUlRK13scoped_refptrINS0_13NamespaceInfoEEE_clES7_ Line | Count | Source | 99 | 63 | auto&& _assert_status = (status); \ |
master-test.cc:_ZZN2yb6master42MasterTest_TestNamespaceCreateFailure_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
master-test.cc:_ZZZN2yb6master42MasterTest_TestNamespaceCreateFailure_Test8TestBodyEvENK3$_6clEvENKUlRK13scoped_refptrINS0_13NamespaceInfoEEE_clES7_ Line | Count | Source | 99 | 12 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: _ZZN2yb6client19GeoTransactionsTest27WaitForStatusTabletsVersionEyENKUlvE_clEv Unexecuted instantiation: _ZZN2yb6client19GeoTransactionsTest28WaitForLoadBalanceCompletionEvENKUlvE_clEv Unexecuted instantiation: _ZZN2yb6client19GeoTransactionsTest28WaitForLoadBalanceCompletionEvENKUlvE0_clEv Unexecuted instantiation: pg_index_backfill-test.cc:_ZZN2yb9pgwrapper33PgIndexBackfillTest_ReadTime_Test8TestBodyEvENK3$_8clEv Unexecuted instantiation: pg_index_backfill-test.cc:_ZZZN2yb9pgwrapper36PgIndexBackfillTest_Permissions_Test8TestBodyEvENK4$_10clEvENKUlvE_clEv Unexecuted instantiation: pg_index_backfill-test.cc:_ZZN2yb9pgwrapper36PgIndexBackfillTest_Permissions_Test8TestBodyEvENK4$_11clEv Unexecuted instantiation: pg_index_backfill-test.cc:_ZZZN2yb9pgwrapper60PgIndexBackfillTest_CreateUniqueIndexWriteAfterSafeTime_Test8TestBodyEvENK4$_14clEvENKUlvE_clEv Unexecuted instantiation: pg_index_backfill-test.cc:_ZZZN2yb9pgwrapper60PgIndexBackfillTest_CreateUniqueIndexWriteAfterSafeTime_Test8TestBodyEvENK4$_14clEvENKUlvE0_clEv Unexecuted instantiation: pg_index_backfill-test.cc:_ZZN2yb9pgwrapper44PgIndexBackfillTest_IndexScanVisibility_Test8TestBodyEvENK4$_18clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper11PgLibPqTest20TestMultiBankAccountENS_14IsolationLevelEENK4$_13clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper32PgLibPqTest_TableColocation_Test8TestBodyEvENK4$_17clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper32PgLibPqTest_TableColocation_Test8TestBodyEvENK4$_17clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper32PgLibPqTest_TableColocation_Test8TestBodyEvENK4$_17clEvENKUlbE_clEb Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper32PgLibPqTest_TableColocation_Test8TestBodyEvENK4$_18clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper32PgLibPqTest_TableColocation_Test8TestBodyEvENK4$_18clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper32PgLibPqTest_TableColocation_Test8TestBodyEvENK4$_19clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_20clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_20clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_20clEvENKUlbE_clEb Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_21clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_21clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_22clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_22clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_23clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_23clEvENKUlRKNS_6ResultI13scoped_refptrINS_6client8internal12RemoteTabletEEEEE_clESB_ Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper37PgLibPqTest_ColocatedTablegroups_Test8TestBodyEvENK4$_24clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper45PgLibPqTest_LoadBalanceSingleColocatedDB_Test8TestBodyEvENK4$_26clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper45PgLibPqTest_LoadBalanceSingleColocatedDB_Test8TestBodyEvENK4$_27clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper45PgLibPqTest_LoadBalanceSingleColocatedDB_Test8TestBodyEvENK4$_28clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper45PgLibPqTest_LoadBalanceSingleColocatedDB_Test8TestBodyEvENK4$_29clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper47PgLibPqTest_LoadBalanceMultipleColocatedDB_Test8TestBodyEvENK4$_30clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper47PgLibPqTest_LoadBalanceMultipleColocatedDB_Test8TestBodyEvENK4$_31clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper53PgLibPqDatabaseTimeoutTest_TestDatabaseTimeoutGC_Test8TestBodyEvENK4$_32clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper53PgLibPqDatabaseTimeoutTest_TestDatabaseTimeoutGC_Test8TestBodyEvENK4$_33clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper63PgLibPqDatabaseTimeoutTest_TestDatabaseTimeoutAndRestartGC_Test8TestBodyEvENK4$_34clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper63PgLibPqDatabaseTimeoutTest_TestDatabaseTimeoutAndRestartGC_Test8TestBodyEvENK4$_35clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper63PgLibPqDatabaseTimeoutTest_TestDatabaseTimeoutAndRestartGC_Test8TestBodyEvENK4$_36clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper47PgLibPqTableTimeoutTest_TestTableTimeoutGC_Test8TestBodyEvENK4$_37clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper47PgLibPqTableTimeoutTest_TestTableTimeoutGC_Test8TestBodyEvENK4$_38clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper57PgLibPqTableTimeoutTest_TestTableTimeoutAndRestartGC_Test8TestBodyEvENK4$_39clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper57PgLibPqTableTimeoutTest_TestTableTimeoutAndRestartGC_Test8TestBodyEvENK4$_40clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper57PgLibPqTableTimeoutTest_TestTableTimeoutAndRestartGC_Test8TestBodyEvENK4$_41clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper57PgLibPqIndexTableTimeoutTest_TestIndexTableTimeoutGC_Test8TestBodyEvENK4$_42clEv Unexecuted instantiation: pg_libpq-test.cc:_ZZN2yb9pgwrapper57PgLibPqIndexTableTimeoutTest_TestIndexTableTimeoutGC_Test8TestBodyEvENK4$_43clEv Unexecuted instantiation: pg_mini-test.cc:_ZZN2yb9pgwrapper35PgMiniTest_BulkCopyWithRestart_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: pg_mini-test.cc:_ZZN2yb9pgwrapper10PgMiniTest14TestForeignKeyENS_14IsolationLevelEENK3$_4clEv Unexecuted instantiation: pg_mini-test.cc:_ZZN2yb9pgwrapper26PgMiniTest_MoveMaster_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: pg_mini-test.cc:_ZZN2yb9pgwrapper10PgMiniTest13TestBigInsertEbENK3$_8clEv Unexecuted instantiation: pg_mini-test.cc:_ZZN2yb9pgwrapper53PgMiniTest_BigInsertWithAbortedIntentsAndRestart_Test8TestBodyEvENK4$_13clEv Unexecuted instantiation: pg_mini-test.cc:_ZZN2yb9pgwrapper44PgMiniTest_DISABLED_NonRespondingMaster_Test8TestBodyEvENK4$_14clEv Unexecuted instantiation: _ZZN2yb9pgwrapper13PgWrapperTest14FlushOrCompactENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS0_17FlushOrCompactionEENKUlvE_clEv Unexecuted instantiation: pg_wrapper-test.cc:_ZZN2yb9pgwrapper48PgWrapperOneNodeClusterTest_TestPostgresPid_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: pg_wrapper-test.cc:_ZZN2yb9pgwrapper48PgWrapperOneNodeClusterTest_TestPostgresPid_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: pg_wrapper-test.cc:_ZZN2yb9pgwrapper48PgWrapperOneNodeClusterTest_TestPostgresPid_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: pg_wrapper-test.cc:_ZZN2yb9pgwrapper48PgWrapperOneNodeClusterTest_TestPostgresPid_Test8TestBodyEvENK3$_4clEv db_compaction_test.cc:_ZZN7rocksdb53DBCompactionTest_AbortManualCompactionOnShutdown_Test8TestBodyEvENK4$_28clEv Line | Count | Source | 99 | 4 | auto&& _assert_status = (status); \ |
db_compaction_test.cc:_ZZN7rocksdb53DBCompactionTest_AbortManualCompactionOnShutdown_Test8TestBodyEvENK4$_30clEv Line | Count | Source | 99 | 51 | auto&& _assert_status = (status); \ |
db_compaction_test.cc:_ZZN7rocksdb53DBCompactionTest_AbortManualCompactionOnShutdown_Test8TestBodyEvENK4$_31clEv Line | Count | Source | 99 | 52 | auto&& _assert_status = (status); \ |
db_compaction_test.cc:_ZZN7rocksdb53DBCompactionTest_AbortManualCompactionOnShutdown_Test8TestBodyEvENK4$_32clEv Line | Count | Source | 99 | 57 | auto&& _assert_status = (status); \ |
_ZZN7rocksdb22OnFileCreationListener18OnTableFileCreatedERKNS_21TableFileCreationInfoEENKUlvE_clEv Line | Count | Source | 99 | 66 | auto&& _assert_status = (status); \ |
db_universal_compaction_deletion_test.cc:_ZZN7rocksdb72DBTestUniversalCompactionDeletion_DeleteObsoleteFilesDelayedByFlush_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 99 | 3 | auto&& _assert_status = (status); \ |
db_universal_compaction_deletion_test.cc:_ZZN7rocksdb74DBTestUniversalCompactionDeletion_DeleteObsoleteFilesMinPendingOutput_Test8TestBodyEvENK3$_2clEv Line | Count | Source | 99 | 11 | auto&& _assert_status = (status); \ |
db_universal_compaction_deletion_test.cc:_ZZN7rocksdb86DBTestUniversalCompactionDeletion_DeleteObsoleteFilesDelayedByScheduledCompaction_Test8TestBodyEvENK3$_3clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
db_universal_compaction_deletion_test.cc:_ZZN7rocksdb86DBTestUniversalCompactionDeletion_DeleteObsoleteFilesDelayedByScheduledCompaction_Test8TestBodyEvENK3$_4clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
db_universal_compaction_deletion_test.cc:_ZZN7rocksdb86DBTestUniversalCompactionDeletion_DeleteObsoleteFilesDelayedByScheduledCompaction_Test8TestBodyEvENK3$_5clEv Line | Count | Source | 99 | 66 | auto&& _assert_status = (status); \ |
db_universal_compaction_deletion_test.cc:_ZZN7rocksdb86DBTestUniversalCompactionDeletion_DeleteObsoleteFilesDelayedByScheduledCompaction_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 10 | auto&& _assert_status = (status); \ |
thread_pool-test.cc:_ZZN2yb3rpc6strand41ThreadPoolTest_NotUsedStrandShutdown_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 2 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: yb-admin-multi-master-test.cc:_ZZN2yb5tools52YBAdminMultiMasterTest_TestMasterLeaderStepdown_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: yb-admin-multi-master-test.cc:_ZZN2yb5tools52YBAdminMultiMasterTest_TestMasterLeaderStepdown_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: _ZZN2yb5tools33YbAdminSnapshotScheduleTestWithLB28WaitForLoadBalanceCompletionENS_9MonoDeltaEENKUlvE_clEv Unexecuted instantiation: _ZZN2yb5tools33YbAdminSnapshotScheduleTestWithLB28WaitForLoadBalanceCompletionENS_9MonoDeltaEENKUlvE0_clEv Unexecuted instantiation: _ZZN2yb5tools33YbAdminSnapshotScheduleTestWithLB23WaitForLoadToBeBalancedENS_9MonoDeltaEENKUlvE_clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools38YbAdminSnapshotScheduleTest_Basic_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools39YbAdminSnapshotScheduleTest_Delete_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools39YbAdminSnapshotScheduleTest_Delete_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools39YbAdminSnapshotScheduleTest_Delete_Test8TestBodyEvENK3$_3clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools54YbAdminSnapshotScheduleTest_CleanupDeletedTablets_Test8TestBodyEvENK3$_4clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools49YbAdminSnapshotScheduleTest_PgsqlCreateTable_Test8TestBodyEvENK3$_5clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools59YbAdminSnapshotScheduleTest_TestVerifyRestorationLogic_Test8TestBodyEvENK3$_6clEv Unexecuted instantiation: yb-admin-snapshot-schedule-test.cc:_ZZN2yb5tools53YbAdminSnapshotScheduleTest_DeleteIndexOnRestore_Test8TestBodyEvENK4$_11clEv Unexecuted instantiation: yb-admin-test.cc:_ZZN2yb5tools36AdminCliTest_TestLeaderStepdown_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: yb-admin-test_ent.cc:_ZZN2yb5tools42AdminCliTest_TestRestoreSnapshotBasic_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: yb-admin-test_ent.cc:_ZZN2yb5tools47AdminCliTest_TestRestoreSnapshotHybridTime_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: yb-admin-test_ent.cc:_ZZN2yb5tools46AdminCliTest_TestRestoreSnapshotTimestamp_Test8TestBodyEvENK3$_2clEv Unexecuted instantiation: yb-backup-test_ent.cc:_ZZN2yb5tools52YBBackupTest_DISABLED_TestYSQLManualTabletSplit_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: yb-ts-cli-test.cc:_ZZN2yb5tools42YBTsCliTest_TestTabletServerReadiness_Test8TestBodyEvENK3$_0clEv Unexecuted instantiation: yb-ts-cli-test.cc:_ZZN2yb5tools33YBTsCliTest_TestRefreshFlags_Test8TestBodyEvENK3$_1clEv Unexecuted instantiation: yb-ts-cli-test.cc:_ZZN2yb5tools33YBTsCliTest_TestRefreshFlags_Test8TestBodyEvENK3$_2clEv threadpool-test.cc:_ZZN2yb28TestThreadPool_TestRace_Test8TestBodyEvENK3$_2clEv Line | Count | Source | 99 | 500 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb31TestThreadPool_TestMetrics_Test8TestBodyEvENK3$_3clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb31TestThreadPool_TestMetrics_Test8TestBodyEvENK3$_4clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb31TestThreadPool_TestMetrics_Test8TestBodyEvENK3$_5clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb31TestThreadPool_TestMetrics_Test8TestBodyEvENK3$_6clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb31TestThreadPool_TestMetrics_Test8TestBodyEvENK3$_7clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb31TestThreadPool_TestMetrics_Test8TestBodyEvENK3$_8clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb52TestThreadPoolTokenTypes_TestTokenSubmitAndWait_Test8TestBodyEvENK3$_9clEv Line | Count | Source | 99 | 2 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb53TestThreadPool_TestTokenSubmitsProcessedSerially_Test8TestBodyEvENK4$_10clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb67TestThreadPoolTokenTypes_TestTokenSubmitsProcessedConcurrently_Test8TestBodyEvENK4$_12clEv Line | Count | Source | 99 | 10 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb49TestThreadPool_TestTokenSubmitsNonSequential_Test8TestBodyEvENK4$_14clEv Line | Count | Source | 99 | 5 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb47TestThreadPoolTokenTypes_TestTokenShutdown_Test8TestBodyEvENK4$_16clEv Line | Count | Source | 99 | 4 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb47TestThreadPoolTokenTypes_TestTokenShutdown_Test8TestBodyEvENK4$_17clEv Line | Count | Source | 99 | 4 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb47TestThreadPoolTokenTypes_TestTokenShutdown_Test8TestBodyEvENK4$_19clEv Line | Count | Source | 99 | 1 | auto&& _assert_status = (status); \ |
threadpool-test.cc:_ZZN2yb28TestThreadPool_TestFuzz_Test8TestBodyEvENK4$_21clEv Line | Count | Source | 99 | 363 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: cdc_test_util.cc:_ZZN2yb3cdc25WaitUntilWalRetentionSecsENSt3__18functionIFivEEEjRKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv yb_table_test_base.cc:_ZZN2yb17integration_tests15YBTableTestBase28WaitForLoadBalanceCompletionENS_9MonoDeltaEENK3$_0clEv Line | Count | Source | 99 | 1.40k | auto&& _assert_status = (status); \ |
yb_table_test_base.cc:_ZZN2yb17integration_tests15YBTableTestBase28WaitForLoadBalanceCompletionENS_9MonoDeltaEENK3$_1clEv Line | Count | Source | 99 | 1.14k | auto&& _assert_status = (status); \ |
remote_bootstrap_session-test.cc:_ZZN2yb7tserver26RemoteBootstrapSessionTest15SetUpTabletPeerEvENK3$_0clEv Line | Count | Source | 99 | 28 | auto&& _assert_status = (status); \ |
|
100 | 29.7M | if (_assert_status.ok()) { \ |
101 | 29.7M | SUCCEED(); \ |
102 | 35.6k | } else { \ |
103 | 35.6k | FAIL() << "Bad status: " << StatusToString(_assert_status); \ |
104 | 35.6k | } \ |
105 | 29.7M | } while (0) |
106 | | |
107 | 5.02k | #define ASSERT_NOK(s) ASSERT_FALSE((s).ok()) |
108 | | |
109 | 10.0k | #define ASSERT_OK_PREPEND(status, msg) do { \ |
110 | 14 | auto&& _assert_status = (status); \ master_config-itest.cc:_ZZN2yb6master22MasterChangeConfigTest31VerifyNonLeaderMastersPeerCountEvENK3$_0clEv Line | Count | Source | 110 | 14 | auto&& _assert_status = (status); \ |
Unexecuted instantiation: tablet-split-itest.cc:_ZZN2yb47TabletSplitITest_SplitDuringReplicaOffline_Test8TestBodyEvENK4$_11clEv |
111 | 10.0k | if (_assert_status.ok()) { \ |
112 | 10.0k | SUCCEED(); \ |
113 | 0 | } else { \ |
114 | 0 | FAIL() << (msg) << " - status: " << StatusToString(_assert_status); \ |
115 | 0 | } \ |
116 | 10.0k | } while (0) |
117 | | |
118 | | #ifdef EXPECT_OK |
119 | | #undef EXPECT_OK |
120 | | #endif |
121 | | |
122 | 14.9k | #define EXPECT_OK(status) do { \ |
123 | 2.64k | auto&& _s = (status); \ tablet-split-itest.cc:_ZZN2yb79TabletSplitExternalMiniClusterITest_FaultedSplitNodeRejectsRemoteBootstrap_Test8TestBodyEvENK4$_17clEv Line | Count | Source | 123 | 1 | auto&& _s = (status); \ |
tablet-split-itest.cc:_ZZN2yb84TabletSplitRemoteBootstrapEnabledTest_TestSplitAfterFailedRbsCreatesDirectories_Test8TestBodyEvENK4$_21clEv Line | Count | Source | 123 | 1 | auto&& _s = (status); \ |
background_task-test.cc:_ZZN2yb38BackgroundTaskTest_RunsTaskOnWake_Test8TestBodyEvENK3$_0clEv Line | Count | Source | 123 | 1.64k | auto&& _s = (status); \ |
background_task-test.cc:_ZZN2yb42BackgroundTaskTest_RunsTaskOnInterval_Test8TestBodyEvENK3$_1clEv Line | Count | Source | 123 | 1.00k | auto&& _s = (status); \ |
|
124 | 14.9k | if (_s.ok()) { \ |
125 | 14.9k | SUCCEED(); \ |
126 | 8 | } else { \ |
127 | 8 | ADD_FAILURE() << "Bad status: " << StatusToString(_s); \ |
128 | 8 | } \ |
129 | 14.9k | } while (0) |
130 | | |
131 | 1 | #define EXPECT_NOT_OK(s) EXPECT_FALSE((s).ok()) |
132 | | |
133 | | // Like the above, but doesn't record successful |
134 | | // tests. |
135 | 787M | #define ASSERT_OK_FAST(status) do { \ |
136 | 787M | auto&& _assert_status = (status); \ |
137 | 787M | if (!_assert_status.ok()) { \ |
138 | 0 | FAIL() << "Bad status: " << StatusToString(_assert_status); \ |
139 | 0 | } \ |
140 | 787M | } while (0) |
141 | | |
142 | | #define ASSERT_NO_ERROR(ec) \ |
143 | | do { \ |
144 | | auto&& _ec = (ec); \ |
145 | | if (!_ec) { \ |
146 | | SUCCEED(); \ |
147 | | } else { \ |
148 | | FAIL() << "Unexpected error: " << ec.message(); \ |
149 | | } \ |
150 | | } while (false) |
151 | | |
152 | | #define EXPECT_NO_ERROR(ec) \ |
153 | | do { \ |
154 | | auto&& _ec = (ec); \ |
155 | | if (!_ec) { \ |
156 | | SUCCEED(); \ |
157 | | } else { \ |
158 | | ADD_FAILURE() << "Unexpected error: " << ec.message(); \ |
159 | | } \ |
160 | | } while (false) |
161 | | |
162 | | #ifdef THREAD_SANITIZER |
163 | | #define ASSERT_PERF_LE(lhs, rhs) do { (void)(lhs); (void)(rhs); } while(false) |
164 | | #define EXPECT_PERF_LE(lhs, rhs) do { (void)(lhs); (void)(rhs); } while(false) |
165 | | #else |
166 | 6 | #define ASSERT_PERF_LE(lhs, rhs) ASSERT_LE(lhs, rhs) |
167 | 4 | #define EXPECT_PERF_LE(lhs, rhs) EXPECT_LE(lhs, rhs) |
168 | | #endif |
169 | | |
170 | 161 | #define ASSERT_STR_CONTAINS(str, substr) do { \ |
171 | 143 | std::string _s = (str); \ |
172 | 143 | if (_s.find((substr)) == std::string::npos) { \ |
173 | 0 | FAIL() << "Expected to find substring '" << (substr) \ |
174 | 0 | << "'. Got: '" << _s << "'"; \ |
175 | 0 | } \ |
176 | 143 | } while (0) |
177 | | |
178 | 2 | #define ASSERT_STR_NOT_CONTAINS(str, substr) do { \ |
179 | 2 | std::string _s = (str); \ |
180 | 2 | if (_s.find((substr)) != std::string::npos) { \ |
181 | 0 | FAIL() << "Expected not to find substring '" << (substr) \ |
182 | 0 | << "'. Got: '" << _s << "'"; \ |
183 | 0 | } \ |
184 | 2 | } while (0) |
185 | | |
186 | 0 | inline std::string FindFirstDiff(const std::string& lhs, const std::string& rhs) { |
187 | 0 | size_t min_len = std::min(lhs.size(), rhs.size()); |
188 | 0 | size_t i = 0; |
189 | 0 | for (; i != min_len; ++i) { |
190 | 0 | if (lhs[i] != rhs[i]) { |
191 | 0 | break; |
192 | 0 | } |
193 | 0 | } |
194 | 0 | return lhs.substr(i, std::min<size_t>(lhs.size() - i, 32)) + " vs " + |
195 | 0 | rhs.substr(i, std::min<size_t>(rhs.size() - i, 32)); |
196 | 0 | } |
197 | | |
198 | 9 | #define ASSERT_STR_EQ(lhs, rhs) do { \ |
199 | 9 | std::string _lhs = (lhs); \ |
200 | 9 | std::string _rhs = (rhs); \ |
201 | 18 | ASSERT_EQ(lhs, rhs) << "First diff: " << FindFirstDiff(lhs, rhs); \ |
202 | 9 | } while (0) |
203 | | |
204 | | #define ASSERT_FILE_EXISTS(env, path) do { \ |
205 | | std::string _s = (path); \ |
206 | | ASSERT_TRUE(env->FileExists(_s)) \ |
207 | | << "Expected file to exist: " << _s; \ |
208 | | } while (0) |
209 | | |
210 | | #define ASSERT_FILE_NOT_EXISTS(env, path) do { \ |
211 | | std::string _s = (path); \ |
212 | | ASSERT_FALSE(env->FileExists(_s)) \ |
213 | | << "Expected file not to exist: " << _s; \ |
214 | | } while (0) |
215 | | |
216 | | // Wrappers around ASSERT_EQ and EXPECT_EQ that trim expected and actual strings and outputs |
217 | | // expected and actual values without any escaping. We're also printing a stack trace to allow |
218 | | // easier debugging. |
219 | | #define _ASSERT_EXPECT_STR_EQ_VERBOSE_COMMON_SETUP(expected, actual) \ |
220 | 18 | const auto expected_tmp = ::yb::util::TrimStr(yb::util::LeftShiftTextBlock(expected)); \ |
221 | 18 | const auto actual_tmp = ::yb::util::TrimStr(yb::util::LeftShiftTextBlock(actual)); |
222 | | |
223 | | #define _ASSERT_EXPECT_STR_EQ_VERBOSE_COMMON_MSG \ |
224 | 0 | "\nActual (trimmed):\n" << actual_tmp \ |
225 | 0 | << "\n\nExpected (trimmed):\n" << expected_tmp; |
226 | | |
227 | | #define ASSERT_STR_EQ_VERBOSE_TRIMMED(expected, actual) \ |
228 | 2 | do { \ |
229 | 2 | _ASSERT_EXPECT_STR_EQ_VERBOSE_COMMON_SETUP(expected, actual) \ |
230 | 4 | ASSERT_EQ(expected_tmp, actual_tmp) << _ASSERT_EXPECT_STR_EQ_VERBOSE_COMMON_MSG; \ |
231 | 2 | } while(0) |
232 | | |
233 | | #define ASSERT_SETS_EQ(expected_set, actual_set) \ |
234 | | do { \ |
235 | | auto&& expected_set_computed = (expected_set); \ |
236 | | auto&& actual_set_computed = (actual_set); \ |
237 | | if (expected_set_computed != actual_set_computed) { \ |
238 | | FAIL() << "Expected " \ |
239 | | << BOOST_PP_STRINGIZE(actual_set) << " to be equal to " \ |
240 | | << BOOST_PP_STRINGIZE(expected_set) << ". Differences: " \ |
241 | | << ::yb::util::TEST_SetDifferenceStr(expected_set_computed, actual_set_computed); \ |
242 | | } \ |
243 | | } while (0) |
244 | | |
245 | | // Compare vectors of "comparable" values that can be put inside an std::set. Because they are |
246 | | // comparable, we also show the differences between the set of elements in vectors, which is |
247 | | // sometimes the only way to see what is different. |
248 | | // |
249 | | // Using a simple name ASSERT_VECTORS_EQ for this macro rather than a more verbose and precise but |
250 | | // more confusing such as ASSERT_VECTORS_OF_COMPARABLE_EQ. |
251 | | // |
252 | | // Google Test says "do not use this in your code" about GTEST_PRED_FORMAT2_, but we need to use it |
253 | | // to correctly propagate the raw text of expressions to the error message. We pass the string |
254 | | // representation of the actual macro parameters but the ..._computed values as values (to avoid |
255 | | // multiple evaluations). |
256 | | // |
257 | | // Here are macros from gtest that were used to construct the implementation below: |
258 | | // |
259 | | // ASSERT_EQ -> GTEST_ASSERT_EQ -> ASSERT_PRED_FORMAT2 -> GTEST_PRED_FORMAT2_ -> GTEST_ASSERT_ |
260 | | #define ASSERT_VECTORS_EQ(expected_vector, actual_vector) \ |
261 | 2.40k | do { \ |
262 | 2.40k | auto&& expected_vector_computed = (expected_vector); \ |
263 | 2.40k | auto&& actual_vector_computed = (actual_vector); \ |
264 | 2.40k | auto expected_set = ::yb::VectorToSet(expected_vector_computed); \ |
265 | 2.40k | auto actual_set = ::yb::VectorToSet(actual_vector_computed); \ |
266 | 4.80k | GTEST_ASSERT_( \ |
267 | 4.80k | ::testing::internal::EqHelper<GTEST_IS_NULL_LITERAL_(expected_vector)>::Compare( \ |
268 | 4.80k | BOOST_PP_STRINGIZE(expected_vector), \ |
269 | 4.80k | BOOST_PP_STRINGIZE(actual_vector), \ |
270 | 4.80k | expected_vector_computed, \ |
271 | 4.80k | actual_vector_computed), \ |
272 | 0 | GTEST_FATAL_FAILURE_) \ |
273 | 4.80k | << "Differences (as sets): " \ |
274 | 4.80k | << ::yb::util::TEST_SetDifferenceStr(expected_set, actual_set); \ |
275 | 2.40k | } while (0) |
276 | | |
277 | | // A wrapper around EXPECT_EQ that trims expected and actual strings and outputs expected and actual |
278 | | // values without any escaping. |
279 | | #define EXPECT_STR_EQ_VERBOSE_TRIMMED(expected, actual) \ |
280 | 16 | do { \ |
281 | 16 | _ASSERT_EXPECT_STR_EQ_VERBOSE_COMMON_SETUP(expected, actual) \ |
282 | 32 | EXPECT_EQ(expected_tmp, actual_tmp) << _ASSERT_EXPECT_STR_EQ_VERBOSE_COMMON_MSG; \ |
283 | 16 | } while(0) |
284 | | |
285 | | #define YB_ASSERT_TRUE(condition) \ |
286 | | GTEST_TEST_BOOLEAN_((condition) ? true : false, #condition, false, true, \ |
287 | | GTEST_FATAL_FAILURE_) |
288 | | |
289 | | #define VERIFY_EQ(expected_expr, actual_expr) \ |
290 | 0 | do { \ |
291 | 0 | auto&& expected = (expected_expr); \ |
292 | 0 | auto&& actual = (actual_expr); \ |
293 | 0 | if (expected != actual) { \ |
294 | 0 | return ::testing::internal::EqFailure( \ |
295 | 0 | BOOST_PP_STRINGIZE(expected_expr), \ |
296 | 0 | BOOST_PP_STRINGIZE(actual_expr), \ |
297 | 0 | ::testing::internal::FormatForComparisonFailureMessage(expected, actual), \ |
298 | 0 | ::testing::internal::FormatForComparisonFailureMessage(actual, expected), \ |
299 | 0 | false); \ |
300 | 0 | } \ |
301 | 0 | } while (false) \ |
302 | | /**/ |
303 | | |
304 | | #define ASSERT_VERIFY(expr) \ |
305 | 0 | do { \ |
306 | 0 | auto&& result = (expr); \ |
307 | 0 | if (!result) { \ |
308 | 0 | FAIL() << result.message(); \ |
309 | 0 | } \ |
310 | 0 | } while (false) \ |
311 | | /**/ |
312 | | |
313 | | // Asserts that expr is not null, returns expr in case of success. |
314 | | #define ASSERT_NOTNULL(expr) \ |
315 | 0 | __extension__ ({ \ |
316 | 0 | auto&& result = (expr); \ |
317 | 0 | if (result == nullptr) { \ |
318 | 0 | FAIL() << "Unexpected nullptr"; \ |
319 | 0 | } \ |
320 | 0 | std::move(result); \ |
321 | 0 | }) \ |
322 | | /**/ |
323 | | |
324 | | #define CURRENT_TEST_NAME() \ |
325 | 68 | ::testing::UnitTest::GetInstance()->current_test_info()->name() |
326 | | |
327 | | #define CURRENT_TEST_CASE_NAME() \ |
328 | 0 | ::testing::UnitTest::GetInstance()->current_test_info()->test_case_name() |
329 | | |
330 | | #define CURRENT_TEST_CASE_AND_TEST_NAME_STR() \ |
331 | 0 | (std::string(CURRENT_TEST_CASE_NAME()) + '.' + CURRENT_TEST_NAME()) |
332 | | |
333 | | #define YB_DISABLE_TEST(test_name) BOOST_PP_CAT(DISABLED_, test_name) |
334 | | |
335 | | #ifdef __APPLE__ |
336 | | #define YB_DISABLE_TEST_ON_MACOS(test_name) YB_DISABLE_TEST(test_name) |
337 | | #else |
338 | | #define YB_DISABLE_TEST_ON_MACOS(test_name) test_name |
339 | | #endif |
340 | | |
341 | | #ifdef THREAD_SANITIZER |
342 | | #define YB_DISABLE_TEST_IN_TSAN(test_name) YB_DISABLE_TEST(test_name) |
343 | | #else |
344 | | #define YB_DISABLE_TEST_IN_TSAN(test_name) test_name |
345 | | #endif |
346 | | |
347 | | #if defined(THREAD_SANITIZER) || defined(ADDRESS_SANITIZER) |
348 | | #define YB_DISABLE_TEST_IN_SANITIZERS(test_name) YB_DISABLE_TEST(test_name) |
349 | | #else |
350 | | #define YB_DISABLE_TEST_IN_SANITIZERS(test_name) test_name |
351 | | #endif |
352 | | |
353 | | #if defined(__APPLE__) || defined(THREAD_SANITIZER) || defined(ADDRESS_SANITIZER) |
354 | | #define YB_DISABLE_TEST_IN_SANITIZERS_OR_MAC(test_name) YB_DISABLE_TEST(test_name) |
355 | | #else |
356 | | #define YB_DISABLE_TEST_IN_SANITIZERS_OR_MAC(test_name) test_name |
357 | | #endif |
358 | | |
359 | | // TODO: use GTEST_SKIP() here when we upgrade gtest. |
360 | 0 | #define YB_SKIP_TEST_IN_TSAN() do { \ |
361 | 0 | if (::yb::IsTsan()) { \ |
362 | 0 | LOG(INFO) << "This test is skipped in TSAN"; \ |
363 | 0 | return; \ |
364 | 0 | } \ |
365 | 0 | } while (false) |
366 | | |
367 | | #endif // YB_UTIL_TEST_MACROS_H |