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

Function test_schema_metadata_encoded

arrow-flight/src/encode.rs:1780–1789  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1778
1779 #[test]
1780 fn test_schema_metadata_encoded() {
1781 let schema = Schema::new(vec![Field::new("data", DataType::Int32, false)]).with_metadata(
1782 HashMap::from([("some_key".to_owned(), "some_value".to_owned())]),
1783 );
1784
1785 let mut dictionary_tracker = DictionaryTracker::new(false);
1786
1787 let got = prepare_schema_for_flight(&schema, &mut dictionary_tracker, false);
1788 assert!(got.metadata().contains_key("some_key"));
1789 }
1790
1791 #[test]
1792 fn test_encode_no_column_batch() {

Callers

nothing calls this directly

Calls 2

with_metadataMethod · 0.45

Tested by

no test coverage detected