Skip to content

Commit 3ab7002

Browse files
committed
test: improve model test coverage
1 parent 05610a9 commit 3ab7002

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

postgresql_extensions/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ The following features are available:
5151

5252
### Repositories
5353

54-
| Name | Description | Default? |
55-
|----------------|------------------------------------------|----------|
56-
| `steampipe` | Enables steampipe PostgreSQL extensions | No |
57-
| `tensor-chord` | Enables tensor-chord PostgreSQL binaries | No |
54+
| Name | Description | Default? |
55+
|----------------|-------------------------------------------|----------|
56+
| `steampipe` | Enables Steampipe PostgreSQL extensions | No |
57+
| `tensor-chord` | Enables TensorChord PostgreSQL extensions | No |
5858

5959
## Supported platforms
6060

postgresql_extensions/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
//!
5151
//! ### Repositories
5252
//!
53-
//! | Name | Description | Default? |
54-
//! |---------------|-----------------------------------------|----------|
55-
//! | `steampipe` | Enables steampipe PostgreSQL extensions | No |
56-
//! | `tensor-chord` | Enables tensor-chord PostgreSQL binaries | No |
53+
//! | Name | Description | Default? |
54+
//! |----------------|-------------------------------------------|----------|
55+
//! | `steampipe` | Enables Steampipe PostgreSQL extensions | No |
56+
//! | `tensor-chord` | Enables TensorChord PostgreSQL extensions | No |
5757
//!
5858
//! ## Supported platforms
5959
//!

postgresql_extensions/src/model.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,17 @@ impl postgresql_commands::Settings for TestSettings {
208208
#[cfg(test)]
209209
mod tests {
210210
use super::*;
211+
use postgresql_commands::Settings;
212+
213+
#[test]
214+
fn test_settings() {
215+
let settings = TestSettings;
216+
assert_eq!(settings.get_binary_dir(), PathBuf::from("."));
217+
assert_eq!(settings.get_host(), "localhost");
218+
assert_eq!(settings.get_port(), 5432);
219+
assert_eq!(settings.get_username(), "postgres");
220+
assert_eq!(settings.get_password(), "password");
221+
}
211222

212223
#[test]
213224
fn test_available_extension() {

0 commit comments

Comments
 (0)