| 26 | const float kTolerance = 1e-5; |
| 27 | |
| 28 | TEST(GetFeatureValuesInt64Test, ReadsASingleValue) { |
| 29 | Example example; |
| 30 | (*example.mutable_features()->mutable_feature())["tag"] |
| 31 | .mutable_int64_list() |
| 32 | ->add_value(42); |
| 33 | |
| 34 | auto tag = GetFeatureValues<protobuf_int64>("tag", example); |
| 35 | |
| 36 | ASSERT_EQ(1, tag.size()); |
| 37 | EXPECT_EQ(42, tag.Get(0)); |
| 38 | } |
| 39 | |
| 40 | TEST(GetFeatureValuesInt64Test, ReadsASingleValueFromFeature) { |
| 41 | Feature feature; |
nothing calls this directly
no test coverage detected