pgx_tests/
lib.rs

1/*
2Portions Copyright 2019-2021 ZomboDB, LLC.
3Portions Copyright 2021-2022 Technology Concepts & Design, Inc. <support@tcdi.com>
4
5All rights reserved.
6
7Use of this source code is governed by the MIT license that can be found in the LICENSE file.
8*/
9
10mod framework;
11#[cfg(any(test, feature = "pg_test"))]
12mod tests;
13
14pub use framework::*;
15
16#[cfg(any(test, feature = "pg_test"))]
17pgx::pg_sql_graph_magic!();
18
19#[cfg(test)]
20pub mod pg_test {
21    pub fn setup(_options: Vec<&str>) {
22        // noop
23    }
24
25    pub fn postgresql_conf_options() -> Vec<&'static str> {
26        vec!["shared_preload_libraries='pgx_tests'"]
27    }
28}