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

Function check_start_index

arrow-string/src/substring.rs:970–974  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

968 // tests for the utf-8 validation checking
969 #[test]
970 fn check_start_index() {
971 let array = StringArray::from(vec![Some("E=mc²"), Some("ascii")]);
972 let err = substring(&array, -1, None).unwrap_err().to_string();
973 assert!(err.contains("invalid utf-8 boundary"));
974 }
975
976 #[test]
977 fn check_length() {

Callers

nothing calls this directly

Calls 1

substringFunction · 0.70

Tested by

no test coverage detected