Commit 6db42c0
authored
Show line number of failed asserts (pgcentralfoundation#2175)
A little quality-of-life improvement: when a unit test fails, the test
runner now shows the line number. For tests with several assertions,
this is quite handy.
Before:
```
Client Error
assertion `left == right` failed
left: "hello"
right: "world"
postgres location: lib.rs
rust location: <unknown>
```
After:
```
Client Error
assertion `left == right` failed
left: "hello"
right: "world"
postgres location: lib.rs:22
rust location: <unknown>
```
Signed-off-by: Max Englander <[email protected]>1 parent 9e7c27c commit 6db42c0
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
0 commit comments