()
| 1241 | |
| 1242 | #[test] |
| 1243 | fn test_append_string() { |
| 1244 | // test builder append |
| 1245 | let array = { |
| 1246 | let mut builder = StringViewBuilder::new(); |
| 1247 | builder.append_value("hello"); |
| 1248 | builder.append_null(); |
| 1249 | builder.append_option(Some("large payload over 12 bytes")); |
| 1250 | builder.finish() |
| 1251 | }; |
| 1252 | assert_eq!(array.value(0), "hello"); |
| 1253 | assert!(array.is_null(1)); |
| 1254 | assert_eq!(array.value(2), "large payload over 12 bytes"); |
| 1255 | } |
| 1256 | |
| 1257 | #[test] |
| 1258 | fn test_append_binary() { |
nothing calls this directly
no test coverage detected