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

Function test_parse_invalid_csv_bool

arrow-csv/src/reader/mod.rs:1920–1928  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1918
1919 #[test]
1920 fn test_parse_invalid_csv_bool() {
1921 let file_name = "test/data/various_invalid_types/invalid_bool.csv";
1922
1923 let error = invalid_csv_helper(file_name);
1924 assert_eq!(
1925 "Parser error: Error while parsing value 'none' as type 'Boolean' for column 3 at line 2. Row data: '[2,2.2,2.22,none]'",
1926 error
1927 );
1928 }
1929
1930 /// Infer the data type of a record
1931 fn infer_field_schema(string: &str) -> DataType {

Callers

nothing calls this directly

Calls 1

invalid_csv_helperFunction · 0.85

Tested by

no test coverage detected