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

mongodb-js / mongodb-mcp-server / 14640870200

24 Apr 2025 11:49AM UTC coverage: 81.603% (+4.1%) from 77.5%
14640870200

Pull #105

github

nirinchev
throw an error
Pull Request #105: chore: add remaining mongodb integration tests

123 of 199 branches covered (61.81%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 3 files covered. (100.0%)

671 of 774 relevant lines covered (86.69%)

45.35 hits per line

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

80.0
/src/common/atlas/apiClientError.ts
1
export class ApiClientError extends Error {
30✔
2
    response?: Response;
3

4
    constructor(message: string, response: Response | undefined = undefined) {
×
5
        super(message);
1✔
6
        this.name = "ApiClientError";
1✔
7
        this.response = response;
1✔
8
    }
9

10
    static async fromResponse(
11
        response: Response,
12
        message: string = `error calling Atlas API`
1✔
13
    ): Promise<ApiClientError> {
14
        try {
1✔
15
            const text = await response.text();
1✔
16
            return new ApiClientError(`${message}: [${response.status} ${response.statusText}] ${text}`, response);
1✔
17
        } catch {
18
            return new ApiClientError(`${message}: ${response.status} ${response.statusText}`, response);
×
19
        }
20
    }
21
}
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