• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

typeorm / typeorm / 15219332477

23 May 2025 09:13PM UTC coverage: 17.216% (-59.1%) from 76.346%
15219332477

Pull #11332

github

naorpeled
cr comments - move if block
Pull Request #11332: feat: add new undefined and null behavior flags

1603 of 12759 branches covered (12.56%)

Branch coverage included in aggregate %.

0 of 31 new or added lines in 3 files covered. (0.0%)

14132 existing lines in 166 files now uncovered.

4731 of 24033 relevant lines covered (19.69%)

60.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.27
/src/error/QueryFailedError.ts
1
import { ObjectUtils } from "../util/ObjectUtils"
9✔
2
import { TypeORMError } from "./TypeORMError"
9✔
3

4
/**
5
 * Thrown when query execution has failed.
6
 */
7
export class QueryFailedError<T extends Error = Error> extends TypeORMError {
9✔
8
    constructor(
UNCOV
9
        readonly query: string,
×
UNCOV
10
        readonly parameters: any[] | undefined,
×
UNCOV
11
        readonly driverError: T,
×
12
    ) {
UNCOV
13
        super(
×
14
            driverError
15
                .toString()
16
                .replace(/^error: /, "")
17
                .replace(/^Error: /, "")
18
                .replace(/^Request/, ""),
19
        )
20

UNCOV
21
        if (driverError) {
×
22
            const {
23
                name: _, // eslint-disable-line
24
                ...otherProperties
UNCOV
25
            } = driverError
×
26

UNCOV
27
            ObjectUtils.assign(this, {
×
28
                ...otherProperties,
29
            })
30
        }
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc