MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/arrow/array/diff_test.cc:275–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273};
274
275TEST_F(DiffTest, Trivial) {
276 base_ = ArrayFromJSON(int32(), "[]");
277 target_ = ArrayFromJSON(int32(), "[]");
278 DoDiff();
279 AssertInsertIs("[false]");
280 AssertRunLengthIs("[0]");
281
282 base_ = ArrayFromJSON(null(), "[null, null]");
283 target_ = ArrayFromJSON(null(), "[null, null, null, null]");
284 DoDiff();
285 AssertInsertIs("[false, true, true]");
286 AssertRunLengthIs("[2, 0, 0]");
287
288 base_ = ArrayFromJSON(int32(), "[1, 2, 3]");
289 target_ = ArrayFromJSON(int32(), "[1, 2, 3]");
290 DoDiff();
291 AssertInsertIs("[false]");
292 AssertRunLengthIs("[3]");
293}
294
295TEST_F(DiffTest, Errors) {
296 std::stringstream formatted;

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
DiffFunction · 0.85
default_memory_poolFunction · 0.85
EqualOptionsClass · 0.85
ValidateEditScriptFunction · 0.85
listFunction · 0.85
struct_Function · 0.85
month_day_nano_intervalFunction · 0.85
mapFunction · 0.85
UnionTypeFactoriesFunction · 0.85
decimal32Function · 0.85
decimal64Function · 0.85

Tested by

no test coverage detected