Definition at line 60 of file archivist_unittests.cc.
◆ SampleWithVector()
| impeller::testing::SampleWithVector::SampleWithVector |
( |
| ) |
|
|
default |
◆ GetPrimaryKey()
| PrimaryKey impeller::testing::SampleWithVector::GetPrimaryKey |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Read()
Implements impeller::Archivable.
Definition at line 77 of file archivist_unittests.cc.
79 auto str_result = item.Read(
"hello", str);
80 std::vector<Sample> samples;
81 auto vec_result = item.Read(
"samples", samples);
83 if (!str_result || str !=
"world" || !vec_result || samples.size() != 50) {
87 size_t current = 1988;
88 for (
const auto& sample : samples) {
89 if (sample.GetSomeData() != current++) {
References impeller::ArchiveLocation::Read().
◆ Write()
| bool impeller::testing::SampleWithVector::Write |
( |
ArchiveLocation & |
item | ) |
const |
|
inlineoverridevirtual |
◆ kArchiveDefinition
| const ArchiveDef impeller::testing::SampleWithVector::kArchiveDefinition |
|
static |
Initial value:= {
.table_name = "SampleWithVector",
.members = {"hello", "samples"},
}
Definition at line 94 of file archivist_unittests.cc.
The documentation for this class was generated from the following file: