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

mongodb-js / mongodb-mcp-server / 14669383314

25 Apr 2025 04:22PM UTC coverage: 64.491% (-17.2%) from 81.696%
14669383314

Pull #129

github

blva
chore: add config flags
Pull Request #129: chore: add config flags

89 of 212 branches covered (41.98%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

139 existing lines in 14 files now uncovered.

583 of 830 relevant lines covered (70.24%)

38.92 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 {
25✔
2
    response?: Response;
3

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

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

© 2026 Coveralls, Inc