• 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

92.11
/services/github/github-code-size.service.js
1
import { pathParams } from '../index.js'
2 ✔
2
import { renderSizeBadge } from '../size.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 GithubCodeSize extends BaseGithubLanguage {
2 ✔
7
  static category = 'size'
2 ✔
8
  static route = {
2 ✔
9
    base: 'github/languages/code-size',
2 ✔
10
    pattern: ':user/:repo',
2 ✔
11
  }
2 ✔
12

2 ✔
13
  static openApi = {
2 ✔
14
    '/github/languages/code-size/{user}/{repo}': {
2 ✔
15
      get: {
2 ✔
16
        summary: 'GitHub code size in bytes',
2 ✔
17
        description: documentation,
2 ✔
18
        parameters: pathParams(
2 ✔
19
          {
2 ✔
20
            name: 'user',
2 ✔
21
            example: 'badges',
2 ✔
22
          },
2 ✔
23
          {
2 ✔
24
            name: 'repo',
2 ✔
25
            example: 'shields',
2 ✔
26
          },
2 ✔
27
        ),
2 ✔
28
      },
2 ✔
29
    },
2 ✔
30
  }
2 ✔
31

2 ✔
32
  static defaultBadgeData = { label: 'code size' }
2 ✔
33

2 ✔
34
  async handle({ user, repo }) {
2 ✔
UNCOV
35
    const data = await this.fetch({ user, repo })
×
UNCOV
36
    return renderSizeBadge(this.getTotalSize(data), 'iec', 'code size')
×
UNCOV
37
  }
×
38
}
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