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

mongodb-js / mongodb-mcp-server / 14591543426

22 Apr 2025 09:33AM UTC coverage: 51.548% (+0.6%) from 50.98%
14591543426

Pull #84

github

nirinchev
CR comments
Pull Request #84: chore: add integration tests for create-index

27 of 148 branches covered (18.24%)

Branch coverage included in aggregate %.

5 of 6 new or added lines in 2 files covered. (83.33%)

2 existing lines in 1 file now uncovered.

406 of 692 relevant lines covered (58.67%)

60.08 hits per line

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

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

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

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