aboutsummaryrefslogtreecommitdiff
path: root/src/datum_type_test.cc
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-04-10 13:14:57 -0400
committerDavid Neto <dneto@google.com>2019-04-10 13:14:57 -0400
commitd4e543bfcc6e92cfa975254af693bbdb73b13d58 (patch)
tree97c626add305e254096bc11bb7167f38aeec18d9 /src/datum_type_test.cc
parentae06ff8ee7b40f1e7e0741b102505c2d6513bdcf (diff)
downloadamber-d4e543bfcc6e92cfa975254af693bbdb73b13d58.tar.gz
Add Buffer::GetFormat (#458)
This CL adds a GetFormat method directly to the Buffer class. The method is overriden by the two sub-classes. The DataBuffer will cache the generated format.
Diffstat (limited to 'src/datum_type_test.cc')
-rw-r--r--src/datum_type_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datum_type_test.cc b/src/datum_type_test.cc
index f932851..bf1924e 100644
--- a/src/datum_type_test.cc
+++ b/src/datum_type_test.cc
@@ -34,7 +34,7 @@ TEST_P(DatumTypeTestFormat, ToFormat) {
dt.SetRowCount(test_data.row_count);
auto fmt = dt.AsFormat();
- EXPECT_EQ(test_data.format_type, fmt.GetFormatType());
+ EXPECT_EQ(test_data.format_type, fmt->GetFormatType());
}
INSTANTIATE_TEST_CASE_P(
DatumTypeTestFormat,