| 105 | // TODO(bkietz) parameterize (at least some of) these tests over UnexpectedFieldBehavior |
| 106 | |
| 107 | TEST(BlockParserWithSchema, Basics) { |
| 108 | auto options = ParseOptions::Defaults(); |
| 109 | options.explicit_schema = |
| 110 | schema({field("hello", float64()), field("world", boolean()), field("yo", utf8())}); |
| 111 | options.unexpected_field_behavior = UnexpectedFieldBehavior::Ignore; |
| 112 | AssertParseColumns( |
| 113 | options, scalars_only_src(), |
| 114 | {field("hello", utf8()), field("world", boolean()), field("yo", utf8())}, |
| 115 | {"[\"3.5\", \"3.25\", \"3.125\", \"0.0\"]", "[false, null, null, true]", |
| 116 | "[\"thing\", null, \"\xe5\xbf\x8d\", null]"}); |
| 117 | } |
| 118 | |
| 119 | TEST(BlockParserWithSchema, Empty) { |
| 120 | auto options = ParseOptions::Defaults(); |
nothing calls this directly
no test coverage detected