blob: 5467be91752b6e54fc4ab5fbd9435c45709d8307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Tests for the idoreports_get_sla_ok_percent() function
======================================================
These are pg_tap tests. You need pg_tap installed for the PG version you want to test on, e.g. "postgresql-12-pgtap" for Debian/Ubuntu.
I used these to find the cause for some seamingly strange NULL results.
Which were basically due to a badly chosen ALIAS ("state_time" on line 20, which is now "state_time_").
I run these tests on an Ubuntu/Debian system with "pg_virtualenv" like this:
```
pg_virtualenv -s pg_prove t/0*.sql
```
or simply
```
t/testme.sh
```
|