MCPcopy Create free account
hub / github.com/apache/datafusion / assert_result_error_contains

Function assert_result_error_contains

benchmarks/src/sql_benchmark.rs:1594–1601  ·  view source on GitHub ↗
(result: Result<T>, expected_message: &str)

Source from the content-addressed store, hash-verified

1592 }
1593
1594 fn assert_result_error_contains<T: Debug>(result: Result<T>, expected_message: &str) {
1595 let error = result.expect_err("operation should fail");
1596 let message = error.to_string();
1597 assert!(
1598 message.contains(expected_message),
1599 "expected error containing {expected_message:?}, got {message:?}"
1600 );
1601 }
1602
1603 fn formatted_last_results(benchmark: &SqlBenchmark) -> Vec<Vec<String>> {
1604 format_record_batches(

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…