MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / assert_sqlx_code

Function assert_sqlx_code

tests/extensions_smoke.rs:46–51  ·  view source on GitHub ↗
(err: &sqlx::Error, expected_code: &str)

Source from the content-addressed store, hash-verified

44}
45
46fn assert_sqlx_code(err: &sqlx::Error, expected_code: &str) {
47 assert_eq!(
48 err.as_database_error().and_then(|db| db.code()).as_deref(),
49 Some(expected_code)
50 );
51}
52
53fn assert_only_requested_extension_assets_are_materialized(
54 root: &Path,

Calls

no outgoing calls

Tested by

no test coverage detected