• 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

80.49
/services/github/github-language-count.service.js
1
import { pathParams } from '../index.js'
2 ✔
2
import { metric } from '../text-formatters.js'
2 ✔
3
import { BaseGithubLanguage } from './github-languages-base.js'
2 ✔
4
import { documentation } from './github-helpers.js'
2 ✔
5

2 ✔
6
export default class GithubLanguageCount extends BaseGithubLanguage {
2 ✔
7
  static category = 'analysis'
2 ✔
8
  static route = { base: 'github/languages/count', pattern: ':user/:repo' }
2 ✔
9
  static openApi = {
2 ✔
10
    '/github/languages/count/{user}/{repo}': {
2 ✔
11
      get: {
2 ✔
12
        summary: 'GitHub language count',
2 ✔
13
        description: documentation,
2 ✔
14
        parameters: pathParams(
2 ✔
15
          {
2 ✔
16
            name: 'user',
2 ✔
17
            example: 'badges',
2 ✔
18
          },
2 ✔
19
          {
2 ✔
20
            name: 'repo',
2 ✔
21
            example: 'shields',
2 ✔
22
          },
2 ✔
23
        ),
2 ✔
24
      },
2 ✔
25
    },
2 ✔
26
  }
2 ✔
27

2 ✔
28
  static defaultBadgeData = { label: 'languages' }
2 ✔
29

2 ✔
30
  static render({ count }) {
2 ✔
UNCOV
31
    return {
×
UNCOV
32
      message: metric(count),
×
UNCOV
33
      color: 'blue',
×
UNCOV
34
    }
×
UNCOV
35
  }
×
36

2 ✔
37
  async handle({ user, repo }) {
2 ✔
UNCOV
38
    const data = await this.fetch({ user, repo })
×
UNCOV
39
    return this.constructor.render({ count: Object.keys(data).length })
×
UNCOV
40
  }
×
41
}
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