Definition at line 58 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 75 of file archivist_unittests.cc.
77 auto str_result = item.Read(
"hello", str);
78 std::vector<Sample> samples;
79 auto vec_result = item.Read(
"samples", samples);
81 if (!str_result || str !=
"world" || !vec_result || samples.size() != 50) {
85 size_t current = 1988;
86 for (
const auto& sample : samples) {
87 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 92 of file archivist_unittests.cc.
The documentation for this class was generated from the following file: