MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_writer_binary

Function test_writer_binary

arrow-json/src/writer/mod.rs:1870–1890  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1868
1869 #[test]
1870 fn test_writer_binary() {
1871 let values: [Option<&[u8]>; 3] = [
1872 Some(b"Ned Flanders" as &[u8]),
1873 None,
1874 Some(b"Troy McClure" as &[u8]),
1875 ];
1876 // Binary:
1877 {
1878 let batch = build_array_binary::<i32>(&values);
1879 assert_binary_json(&batch);
1880 }
1881 // LargeBinary:
1882 {
1883 let batch = build_array_binary::<i64>(&values);
1884 assert_binary_json(&batch);
1885 }
1886 {
1887 let batch = build_array_binary_view(&values);
1888 assert_binary_json(&batch);
1889 }
1890 }
1891
1892 #[test]
1893 fn test_writer_fixed_size_binary() {

Callers

nothing calls this directly

Calls 2

build_array_binary_viewFunction · 0.85
assert_binary_jsonFunction · 0.70

Tested by

no test coverage detected