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

badges / shields / 45774165149

22 Nov 2026 09:43PM UTC coverage: 79.735% (-18.4%) from 98.17%
45774165149

push

github

web-flow
[Endpoint] Support message override and position it after label in API docs (#12235)

* [Endpoint] Support message override and position it after label in API docs

* Preserve error message when a message override is provided

3371 of 3616 branches covered (93.22%)

43 of 53 new or added lines in 3 files covered. (81.13%)

9589 existing lines in 490 files now uncovered.

41514 of 52065 relevant lines covered (79.73%)

51.0 hits per line

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

69.23
/services/github/github-languages-base.js
1
import Joi from 'joi'
2 ✔
2
import { nonNegativeInteger } from '../validators.js'
2 ✔
3
import { GithubAuthV3Service } from './github-auth-service.js'
2 ✔
4
import { httpErrorsFor } from './github-helpers.js'
2 ✔
5

2 ✔
6
/*
2 ✔
7
We're expecting a response like { "Python": 39624, "Shell": 104 }
2 ✔
8
The keys could be anything and {} is a valid response (e.g: for an empty repo)
2 ✔
9
*/
2 ✔
10
const schema = Joi.object().pattern(/./, nonNegativeInteger)
2 ✔
11

2 ✔
12
class BaseGithubLanguage extends GithubAuthV3Service {
2 ✔
13
  async fetch({ user, repo }) {
2 ✔
UNCOV
14
    return this._requestJson({
×
UNCOV
15
      url: `/repos/${user}/${repo}/languages`,
×
UNCOV
16
      schema,
×
UNCOV
17
      httpErrors: httpErrorsFor(),
×
UNCOV
18
    })
×
UNCOV
19
  }
×
20

2 ✔
21
  getTotalSize(data) {
2 ✔
UNCOV
22
    return Object.values(data).reduce((acc, size) => acc + size, 0)
×
UNCOV
23
  }
×
24
}
2 ✔
25

2 ✔
26
export { BaseGithubLanguage }
2 ✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc