#[pg_test]
#[pg_test] functions are test functions (akin to #[test]), but they run in-process inside Postgres during cargo pgrx test.
#[test]
cargo pgrx test