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

badges / shields / 19223758698

09 Nov 2025 08:58PM UTC coverage: 97.971% (-0.09%) from 98.059%
19223758698

push

github

web-flow
Increase [NpmDownloads] cache (#11488)

5915 of 6188 branches covered (95.59%)

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

58 existing lines in 9 files now uncovered.

49779 of 50810 relevant lines covered (97.97%)

132.87 hits per line

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

85.71
/services/sourceforge/sourceforge-platform.service.js
1
import Joi from 'joi'
3✔
2
import { pathParams } from '../index.js'
3✔
3
import BaseSourceForgeService from './sourceforge-base.js'
3✔
4

3✔
5
const schema = Joi.object({
3✔
6
  categories: Joi.object({
3✔
7
    os: Joi.array()
3✔
8
      .items({
3✔
9
        fullname: Joi.string().required(),
3✔
10
      })
3✔
11
      .required(),
3✔
12
  }).required(),
3✔
13
}).required()
3✔
14

3✔
15
export default class SourceforgePlatform extends BaseSourceForgeService {
3✔
16
  static category = 'platform-support'
3✔
17

3✔
18
  static route = {
3✔
19
    base: 'sourceforge/platform',
3✔
20
    pattern: ':project',
3✔
21
  }
3✔
22

3✔
23
  static openApi = {
3✔
24
    '/sourceforge/platform/{project}': {
3✔
25
      get: {
3✔
26
        summary: 'SourceForge Platform',
3✔
27
        parameters: pathParams({
3✔
28
          name: 'project',
3✔
29
          example: 'guitarix',
3✔
30
        }),
3✔
31
      },
3✔
32
    },
3✔
33
  }
3✔
34

3✔
35
  static defaultBadgeData = { label: 'platform' }
3✔
36

3✔
37
  static render({ platforms }) {
3✔
UNCOV
38
    return {
×
UNCOV
39
      message: platforms.join(' | '),
×
UNCOV
40
    }
×
UNCOV
41
  }
×
42

3✔
43
  async handle({ project }) {
3✔
44
    const body = await this.fetch({ project, schema })
2✔
UNCOV
45
    return this.constructor.render({
×
UNCOV
46
      platforms: body.categories.os.map(obj => obj.fullname),
×
UNCOV
47
    })
×
48
  }
2✔
49
}
3✔
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