YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/src/yb/tablet/tablet-test-base.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_TABLET_TABLET_TEST_BASE_H
33
#define YB_TABLET_TABLET_TEST_BASE_H
34
35
#include <algorithm>
36
#include <limits>
37
#include <string>
38
#include <unordered_set>
39
#include <vector>
40
41
#include <boost/thread/thread.hpp>
42
#include <glog/logging.h>
43
#include <gtest/gtest.h>
44
45
#include "yb/common/partial_row.h"
46
#include "yb/common/ql_expr.h"
47
#include "yb/common/ql_protocol_util.h"
48
#include "yb/common/ql_value.h"
49
50
#include "yb/docdb/ql_rowwise_iterator_interface.h"
51
52
#include "yb/gutil/strings/substitute.h"
53
#include "yb/gutil/strings/util.h"
54
#include "yb/gutil/walltime.h"
55
#include "yb/util/env.h"
56
#include "yb/util/memory/arena.h"
57
#include "yb/util/status_log.h"
58
#include "yb/util/stopwatch.h"
59
#include "yb/util/test_graph.h"
60
#include "yb/util/test_macros.h"
61
#include "yb/util/test_util.h"
62
#include "yb/tablet/local_tablet_writer.h"
63
#include "yb/tablet/tablet-test-util.h"
64
#include "yb/tablet/tablet.h"
65
#include "yb/gutil/strings/numbers.h"
66
67
namespace yb {
68
namespace tablet {
69
70
// The base class takes as a template argument a "setup" class
71
// which can customize the schema for the tests. This way we can
72
// get coverage on various schemas without duplicating test code.
73
struct StringKeyTestSetup {
74
  static Schema CreateSchema();
75
76
  void BuildRowKey(QLWriteRequestPB *req, int64_t key_idx);
77
78
  void BuildRow(QLWriteRequestPB *req, int32_t key_idx, int32_t val = 0);
79
80
  static void FormatKey(char *buf, size_t buf_size, int64_t key_idx);
81
82
  string FormatDebugRow(int64_t key_idx, int32_t val, bool updated);
83
84
  // Slices can be arbitrarily large
85
  // but in practice tests won't overflow a uint64_t
86
  static uint32_t GetMaxRows();
87
};
88
89
// Setup for testing composite keys
90
struct CompositeKeyTestSetup {
91
  static Schema CreateSchema();
92
93
  static void FormatKey(char *buf, size_t buf_size, int64_t key_idx);
94
95
  string FormatDebugRow(int64_t key_idx, int32_t val, bool updated);
96
97
  // Slices can be arbitrarily large
98
  // but in practice tests won't overflow a uint64_t
99
  static uint32_t GetMaxRows();
100
};
101
102
// Setup for testing integer keys
103
template<DataType Type>
104
struct IntKeyTestSetup {
105
27
  static Schema CreateSchema() {
106
27
    return Schema({ ColumnSchema("key", Type, false, true),
107
27
                    ColumnSchema("key_idx", INT32),
108
27
                    ColumnSchema("val", INT32) }, 1);
109
27
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE1EE12CreateSchemaEv
Line
Count
Source
105
6
  static Schema CreateSchema() {
106
6
    return Schema({ ColumnSchema("key", Type, false, true),
107
6
                    ColumnSchema("key_idx", INT32),
108
6
                    ColumnSchema("val", INT32) }, 1);
109
6
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE2EE12CreateSchemaEv
Line
Count
Source
105
6
  static Schema CreateSchema() {
106
6
    return Schema({ ColumnSchema("key", Type, false, true),
107
6
                    ColumnSchema("key_idx", INT32),
108
6
                    ColumnSchema("val", INT32) }, 1);
109
6
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE3EE12CreateSchemaEv
Line
Count
Source
105
9
  static Schema CreateSchema() {
106
9
    return Schema({ ColumnSchema("key", Type, false, true),
107
9
                    ColumnSchema("key_idx", INT32),
108
9
                    ColumnSchema("val", INT32) }, 1);
109
9
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE4EE12CreateSchemaEv
Line
Count
Source
105
6
  static Schema CreateSchema() {
106
6
    return Schema({ ColumnSchema("key", Type, false, true),
107
6
                    ColumnSchema("key_idx", INT32),
108
6
                    ColumnSchema("val", INT32) }, 1);
109
6
  }
110
111
  void BuildRowKey(QLWriteRequestPB *req, int64_t i) {
112
    CHECK(false) << "Unsupported type";
113
  }
114
115
  // builds a row key from an existing row for updates
116
  template<class RowType>
117
  void BuildRowKeyFromExistingRow(YBPartialRow *dst_row, const RowType& row) {
118
    CHECK(false) << "Unsupported type";
119
  }
120
121
14.2k
  void BuildRow(QLWriteRequestPB* req, int32_t key_idx, int32_t val = 0) {
122
14.2k
    BuildRowKey(req, key_idx);
123
14.2k
    QLAddInt32ColumnValue(req, kFirstColumnId + 1, key_idx);
124
14.2k
    QLAddInt32ColumnValue(req, kFirstColumnId + 2, val);
125
14.2k
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE1EE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
121
2.25k
  void BuildRow(QLWriteRequestPB* req, int32_t key_idx, int32_t val = 0) {
122
2.25k
    BuildRowKey(req, key_idx);
123
2.25k
    QLAddInt32ColumnValue(req, kFirstColumnId + 1, key_idx);
124
2.25k
    QLAddInt32ColumnValue(req, kFirstColumnId + 2, val);
125
2.25k
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE2EE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
121
4.00k
  void BuildRow(QLWriteRequestPB* req, int32_t key_idx, int32_t val = 0) {
122
4.00k
    BuildRowKey(req, key_idx);
123
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 1, key_idx);
124
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 2, val);
125
4.00k
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE3EE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
121
4.00k
  void BuildRow(QLWriteRequestPB* req, int32_t key_idx, int32_t val = 0) {
122
4.00k
    BuildRowKey(req, key_idx);
123
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 1, key_idx);
124
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 2, val);
125
4.00k
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE4EE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
121
4.00k
  void BuildRow(QLWriteRequestPB* req, int32_t key_idx, int32_t val = 0) {
122
4.00k
    BuildRowKey(req, key_idx);
123
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 1, key_idx);
124
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 2, val);
125
4.00k
  }
126
127
  string FormatDebugRow(int64_t key_idx, int32_t val, bool updated) {
128
    CHECK(false) << "Unsupported type";
129
    return "";
130
  }
131
132
27
  static uint32_t GetMaxRows() {
133
27
    using CppType = typename DataTypeTraits<Type>::cpp_type;
134
27
    uint64_t max = std::numeric_limits<CppType>::max();
135
27
    if (max > std::numeric_limits<uint32_t>::max()) {
136
6
      max = static_cast<CppType>(std::numeric_limits<uint32_t>::max());
137
6
    }
138
27
    return static_cast<uint32_t>(max - 1);
139
27
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE1EE10GetMaxRowsEv
Line
Count
Source
132
6
  static uint32_t GetMaxRows() {
133
6
    using CppType = typename DataTypeTraits<Type>::cpp_type;
134
6
    uint64_t max = std::numeric_limits<CppType>::max();
135
6
    if (max > std::numeric_limits<uint32_t>::max()) {
136
0
      max = static_cast<CppType>(std::numeric_limits<uint32_t>::max());
137
0
    }
138
6
    return static_cast<uint32_t>(max - 1);
139
6
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE2EE10GetMaxRowsEv
Line
Count
Source
132
6
  static uint32_t GetMaxRows() {
133
6
    using CppType = typename DataTypeTraits<Type>::cpp_type;
134
6
    uint64_t max = std::numeric_limits<CppType>::max();
135
6
    if (max > std::numeric_limits<uint32_t>::max()) {
136
0
      max = static_cast<CppType>(std::numeric_limits<uint32_t>::max());
137
0
    }
138
6
    return static_cast<uint32_t>(max - 1);
139
6
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE3EE10GetMaxRowsEv
Line
Count
Source
132
9
  static uint32_t GetMaxRows() {
133
9
    using CppType = typename DataTypeTraits<Type>::cpp_type;
134
9
    uint64_t max = std::numeric_limits<CppType>::max();
135
9
    if (max > std::numeric_limits<uint32_t>::max()) {
136
0
      max = static_cast<CppType>(std::numeric_limits<uint32_t>::max());
137
0
    }
138
9
    return static_cast<uint32_t>(max - 1);
139
9
  }
_ZN2yb6tablet15IntKeyTestSetupILNS_8DataTypeE4EE10GetMaxRowsEv
Line
Count
Source
132
6
  static uint32_t GetMaxRows() {
133
6
    using CppType = typename DataTypeTraits<Type>::cpp_type;
134
6
    uint64_t max = std::numeric_limits<CppType>::max();
135
6
    if (max > std::numeric_limits<uint32_t>::max()) {
136
6
      max = static_cast<CppType>(std::numeric_limits<uint32_t>::max());
137
6
    }
138
6
    return static_cast<uint32_t>(max - 1);
139
6
  }
140
};
141
142
template<>
143
2.32k
void IntKeyTestSetup<INT8>::BuildRowKey(QLWriteRequestPB *req, int64_t i) {
144
1.19k
  QLAddInt8HashValue(req, i * (i % 2 == 0 ? -1 : 1));
145
2.32k
}
146
147
template<>
148
4.51k
void IntKeyTestSetup<INT16>::BuildRowKey(QLWriteRequestPB *req, int64_t i) {
149
2.50k
  QLAddInt16HashValue(req, i * (i % 2 == 0 ? -1 : 1));
150
4.51k
}
151
152
template<>
153
4.51k
void IntKeyTestSetup<INT32>::BuildRowKey(QLWriteRequestPB *req, int64_t i) {
154
2.50k
  QLAddInt32HashValue(req, narrow_cast<int32_t>(i * (i % 2 == 0 ? -1 : 1)));
155
4.51k
}
156
157
template<>
158
4.51k
void IntKeyTestSetup<INT64>::BuildRowKey(QLWriteRequestPB *req, int64_t i) {
159
2.50k
  QLAddInt64HashValue(req, i * (i % 2 == 0 ? -1 : 1));
160
4.51k
}
161
162
template<> template<class RowType>
163
void IntKeyTestSetup<INT8>::BuildRowKeyFromExistingRow(YBPartialRow *row,
164
                                                       const RowType& src_row) {
165
  CHECK_OK(row->SetInt8(0, *reinterpret_cast<const int8_t*>(src_row.cell_ptr(0))));
166
}
167
168
template<> template<class RowType>
169
void IntKeyTestSetup<INT16>::BuildRowKeyFromExistingRow(YBPartialRow *row,
170
                                                        const RowType& src_row) {
171
  CHECK_OK(row->SetInt16(0, *reinterpret_cast<const int16_t*>(src_row.cell_ptr(0))));
172
}
173
template<> template<class RowType>
174
void IntKeyTestSetup<INT32>::BuildRowKeyFromExistingRow(YBPartialRow *row,
175
                                                        const RowType& src_row) {
176
  CHECK_OK(row->SetInt32(0, *reinterpret_cast<const int32_t*>(src_row.cell_ptr(0))));
177
}
178
179
template<> template<class RowType>
180
void IntKeyTestSetup<INT64>::BuildRowKeyFromExistingRow(YBPartialRow *row,
181
                                                        const RowType& src_row) {
182
  CHECK_OK(row->SetInt64(0, *reinterpret_cast<const int64_t*>(src_row.cell_ptr(0))));
183
}
184
185
template<>
186
2
string IntKeyTestSetup<INT8>::FormatDebugRow(int64_t key_idx, int32_t val, bool updated) {
187
2
  return strings::Substitute(
188
2
    "{ int8_value: $0 int32_value: $1 int32_value: $2 }",
189
1
    (key_idx % 2 == 0) ? -key_idx : key_idx, key_idx, val);
190
2
}
191
192
template<>
193
2
string IntKeyTestSetup<INT16>::FormatDebugRow(int64_t key_idx, int32_t val, bool updated) {
194
2
  return strings::Substitute(
195
2
    "{ int16_value: $0 int32_value: $1 int32_value: $2 }",
196
1
    (key_idx % 2 == 0) ? -key_idx : key_idx, key_idx, val);
197
2
}
198
199
template<>
200
2
string IntKeyTestSetup<INT32>::FormatDebugRow(int64_t key_idx, int32_t val, bool updated) {
201
2
  return strings::Substitute(
202
2
    "{ int32_value: $0 int32_value: $1 int32_value: $2 }",
203
1
    (key_idx % 2 == 0) ? -key_idx : key_idx, key_idx, val);
204
2
}
205
206
template<>
207
2
string IntKeyTestSetup<INT64>::FormatDebugRow(int64_t key_idx, int32_t val, bool updated) {
208
2
  return strings::Substitute(
209
2
    "{ int64_value: $0 int32_value: $1 int32_value: $2 }",
210
1
    (key_idx % 2 == 0) ? -key_idx : key_idx, key_idx, val);
211
2
}
212
213
// Setup for testing nullable columns
214
struct NullableValueTestSetup {
215
6
  static Schema CreateSchema() {
216
6
    return Schema({ ColumnSchema("key", INT32, false, true),
217
6
                    ColumnSchema("key_idx", INT32),
218
6
                    ColumnSchema("val", INT32, true) }, 1);
219
6
  }
220
221
4.51k
  void BuildRowKey(QLWriteRequestPB *req, int32_t i) {
222
4.51k
    QLAddInt32HashValue(req, i);
223
4.51k
  }
224
225
  // builds a row key from an existing row for updates
226
  template<class RowType>
227
  void BuildRowKeyFromExistingRow(YBPartialRow *row, const RowType& src_row) {
228
    CHECK_OK(row->SetInt32(0, *reinterpret_cast<const int32_t*>(src_row.cell_ptr(0))));
229
  }
230
231
4.00k
  void BuildRow(QLWriteRequestPB *req, int32_t key_idx, int32_t val = 0) {
232
4.00k
    BuildRowKey(req, key_idx);
233
4.00k
    QLAddInt32ColumnValue(req, kFirstColumnId + 1, key_idx);
234
235
4.00k
    if (!ShouldInsertAsNull(key_idx)) {
236
2.00k
      QLAddInt32ColumnValue(req, kFirstColumnId + 2, val);
237
2.00k
    }
238
4.00k
  }
239
240
2
  string FormatDebugRow(int64_t key_idx, int64_t val, bool updated) {
241
2
    if (!updated && ShouldInsertAsNull(key_idx)) {
242
0
      return strings::Substitute(
243
0
      "(int32 key=$0, int32 key_idx=$1, int32 val=NULL)",
244
0
        (int32_t)key_idx, key_idx);
245
0
    }
246
247
2
    return strings::Substitute(
248
2
      "{ int32_value: $0 int32_value: $1 int32_value: $2 }",
249
2
      (int32_t)key_idx, key_idx, val);
250
2
  }
251
252
4.00k
  static bool ShouldInsertAsNull(int64_t key_idx) {
253
4.00k
    return (key_idx & 2) != 0;
254
4.00k
  }
255
256
6
  static uint32_t GetMaxRows() {
257
6
    return std::numeric_limits<uint32_t>::max() - 1;
258
6
  }
259
};
260
261
// Use this with TYPED_TEST_CASE from gtest
262
typedef ::testing::Types<
263
                         StringKeyTestSetup,
264
                         IntKeyTestSetup<INT8>,
265
                         IntKeyTestSetup<INT16>,
266
                         IntKeyTestSetup<INT32>,
267
                         IntKeyTestSetup<INT64>,
268
                         NullableValueTestSetup
269
                         > TabletTestHelperTypes;
270
271
class TabletTestPreBase : public YBTabletTest {
272
 public:
273
  TabletTestPreBase(const Schema& schema, uint32_t max_rows)
274
39
      : YBTabletTest(schema), max_rows_(max_rows), arena_(1_KB, 4_MB) {
275
39
  }
276
277
  // Inserts "count" rows.
278
  void InsertTestRows(int32_t first_row,
279
                      int32_t count,
280
                      int32_t val,
281
                      TimeSeries *ts = nullptr);
282
283
  // Inserts a single test row within a transaction.
284
  CHECKED_STATUS InsertTestRow(LocalTabletWriter* writer, int32_t key_idx, int32_t val);
285
286
  CHECKED_STATUS UpdateTestRow(LocalTabletWriter* writer, int32_t key_idx, int32_t new_val);
287
288
  CHECKED_STATUS UpdateTestRowToNull(LocalTabletWriter* writer, int32_t key_idx);
289
290
  CHECKED_STATUS DeleteTestRow(LocalTabletWriter* writer, int32_t key_idx);
291
292
  void VerifyTestRows(int32_t first_row, int32_t expected_count);
293
294
  // Iterate through the full table, stringifying the resulting rows
295
  // into the given vector. This is only useful in tests which insert
296
  // a very small number of rows.
297
  CHECKED_STATUS IterateToStringList(vector<string> *out);
298
299
  // Because some types are small we need to
300
  // make sure that we don't overflow the type on inserts
301
  // or else we get errors because the key already exists
302
  uint32_t ClampRowCount(uint32_t proposal) const;
303
304
  virtual void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) = 0;
305
  virtual void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) = 0;
306
307
 private:
308
  const uint32_t max_rows_;
309
  Arena arena_;
310
};
311
312
template<class TestSetup>
313
class TabletTestBase : public TabletTestPreBase {
314
 public:
315
  TabletTestBase() :
316
39
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
39
  }
_ZN2yb6tablet14TabletTestBaseINS0_18StringKeyTestSetupEEC2Ev
Line
Count
Source
316
6
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
6
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE1EEEEC2Ev
Line
Count
Source
316
6
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
6
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE2EEEEC2Ev
Line
Count
Source
316
6
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
6
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE3EEEEC2Ev
Line
Count
Source
316
9
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
9
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE4EEEEC2Ev
Line
Count
Source
316
6
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
6
  }
_ZN2yb6tablet14TabletTestBaseINS0_22NullableValueTestSetupEEC2Ev
Line
Count
Source
316
6
    TabletTestPreBase(TestSetup::CreateSchema(), TestSetup::GetMaxRows()) {
317
6
  }
318
319
  template <class RowType>
320
  void VerifyRow(const RowType& row, int64_t key_idx, int32_t val) {
321
    ASSERT_EQ(setup_.FormatDebugRow(key_idx, val, false), schema_.DebugRow(row));
322
  }
323
324
22.2k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
22.2k
    setup_.BuildRow(row, key_idx, value);
326
22.2k
  }
_ZN2yb6tablet14TabletTestBaseINS0_18StringKeyTestSetupEE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
324
4.00k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
4.00k
    setup_.BuildRow(row, key_idx, value);
326
4.00k
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE1EEEE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
324
2.25k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
2.25k
    setup_.BuildRow(row, key_idx, value);
326
2.25k
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE2EEEE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
324
4.00k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
4.00k
    setup_.BuildRow(row, key_idx, value);
326
4.00k
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE3EEEE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
324
4.00k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
4.00k
    setup_.BuildRow(row, key_idx, value);
326
4.00k
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE4EEEE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
324
4.00k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
4.00k
    setup_.BuildRow(row, key_idx, value);
326
4.00k
  }
_ZN2yb6tablet14TabletTestBaseINS0_22NullableValueTestSetupEE8BuildRowEPNS_16QLWriteRequestPBEii
Line
Count
Source
324
4.00k
  void BuildRow(QLWriteRequestPB* row, int32_t key_idx, int32_t value) override {
325
4.00k
    setup_.BuildRow(row, key_idx, value);
326
4.00k
  }
327
328
2.59k
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
2.59k
    setup_.BuildRowKey(row, key_idx);
330
2.59k
  }
_ZN2yb6tablet14TabletTestBaseINS0_18StringKeyTestSetupEE11BuildRowKeyEPNS_16QLWriteRequestPBEi
Line
Count
Source
328
506
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
506
    setup_.BuildRowKey(row, key_idx);
330
506
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE1EEEE11BuildRowKeyEPNS_16QLWriteRequestPBEi
Line
Count
Source
328
69
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
69
    setup_.BuildRowKey(row, key_idx);
330
69
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE2EEEE11BuildRowKeyEPNS_16QLWriteRequestPBEi
Line
Count
Source
328
506
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
506
    setup_.BuildRowKey(row, key_idx);
330
506
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE3EEEE11BuildRowKeyEPNS_16QLWriteRequestPBEi
Line
Count
Source
328
506
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
506
    setup_.BuildRowKey(row, key_idx);
330
506
  }
_ZN2yb6tablet14TabletTestBaseINS0_15IntKeyTestSetupILNS_8DataTypeE4EEEE11BuildRowKeyEPNS_16QLWriteRequestPBEi
Line
Count
Source
328
506
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
506
    setup_.BuildRowKey(row, key_idx);
330
506
  }
_ZN2yb6tablet14TabletTestBaseINS0_22NullableValueTestSetupEE11BuildRowKeyEPNS_16QLWriteRequestPBEi
Line
Count
Source
328
506
  void BuildRowKey(QLWriteRequestPB* row, int32_t key_idx) override {
329
506
    setup_.BuildRowKey(row, key_idx);
330
506
  }
331
332
  TestSetup setup_;
333
};
334
335
} // namespace tablet
336
} // namespace yb
337
338
#endif  // YB_TABLET_TABLET_TEST_BASE_H"