pgx-tests 0.7.4

Test framework for 'pgx'-based Postgres extensions
Documentation
/*
Portions Copyright 2019-2021 ZomboDB, LLC.
Portions Copyright 2021-2022 Technology Concepts & Design, Inc. <support@tcdi.com>

All rights reserved.

Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/

#[cfg(any(test, feature = "pg_test"))]
#[pgx::pg_schema]
mod tests {
    #[allow(unused_imports)]
    use crate as pgx_tests;

    use pgx::prelude::*;

    #[pg_test]
    #[ignore = "This test should be ignored."]
    fn test_for_ignore_attribute() {
        assert_eq!(true, true);
    }

    #[pg_test]
    #[should_panic(expected = "I should panic")]
    fn test_for_should_panic_attribute() {
        assert_eq!(1, 2, "I should panic");
    }
}