MCPcopy Create free account
hub / github.com/antgroup/vsag / TestBasic

Method TestBasic

src/io/io_array_test.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void
41 TestBasic() {
42 this->array_->Resize(3);
43 for (size_t i = 0; i < 3; ++i) {
44 TestBasicReadWrite((*this->array_)[i]);
45 }
46 for (size_t i = 0; i < 3; ++i) {
47 TestBasicReadWrite(this->array_->At(i));
48 }
49 this->array_->Resize(6);
50 for (size_t i = 3; i < 6; ++i) {
51 TestBasicReadWrite(this->array_->At(i));
52 }
53 this->array2_->Resize(6);
54 for (size_t i = 0; i < 6; ++i) {
55 TestSerializeAndDeserialize((*this->array_)[i], (*this->array2_)[i]);
56 }
57 }
58
59 std::unique_ptr<IOArray<IOType>> array_{nullptr};
60 std::unique_ptr<IOArray<IOType>> array2_{nullptr};

Callers 1

io_array_test.cppFile · 0.80

Calls 3

TestBasicReadWriteFunction · 0.85
ResizeMethod · 0.45

Tested by

no test coverage detected