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
13mod framework;
14#[cfg(any(test, feature = "pg_test"))]
15mod tests;
16
17pub use framework::*;
18#[cfg(feature = "proptest")]
19pub mod proptest;
20
21#[cfg(any(test, feature = "pg_test"))]
22pgrx::pg_module_magic!();
23
24#[cfg(test)]
25pub mod pg_test {
26 pub fn setup(_options: Vec<&str>) {
27 // noop
28 }
29
30 pub fn postgresql_conf_options() -> Vec<&'static str> {
31 vec!["shared_preload_libraries='pgrx_tests'"]
32 }
33}