pgrx_tests/
lib.rs

1//LICENSE Portions Copyright 2019-2021 ZomboDB, LLC.
2//LICENSE
3//LICENSE Portions Copyright 2021-2023 Technology Concepts & Design, Inc.
4//LICENSE
5//LICENSE Portions Copyright 2023-2023 PgCentral Foundation, Inc. <contact@pgcentral.org>
6//LICENSE
7//LICENSE All rights reserved.
8//LICENSE
9//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
10
11#![cfg_attr(feature = "nightly", feature(allocator_api))]
12#![allow(clippy::type_complexity)]
13#![allow(clippy::result_large_err)]
14
15mod framework;
16#[cfg(any(test, feature = "pg_test"))]
17mod tests;
18
19pub use framework::*;
20#[cfg(feature = "proptest")]
21pub mod proptest;
22
23#[cfg(any(test, feature = "pg_test"))]
24pgrx::pg_module_magic!(name, version);
25
26#[cfg(test)]
27pub mod pg_test {
28    pub fn setup(_options: Vec<&str>) {
29        // noop
30    }
31
32    pub fn postgresql_conf_options() -> Vec<&'static str> {
33        vec!["shared_preload_libraries='pgrx_tests'"]
34    }
35}