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

Function test_json_empty_projection

arrow-json/src/reader/mod.rs:1937–1943  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1935
1936 #[test]
1937 fn test_json_empty_projection() {
1938 let mut reader = read_file("test/data/basic.json", Some(Schema::empty()));
1939 let batch = reader.next().unwrap().unwrap();
1940
1941 assert_eq!(0, batch.num_columns());
1942 assert_eq!(12, batch.num_rows());
1943 }
1944
1945 #[test]
1946 fn test_json_basic_with_nulls() {

Callers

nothing calls this directly

Calls 2

read_fileFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected