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

janis-commerce / lambda / 7747286274

01 Feb 2024 08:31PM CUT coverage: 100.0%. Remained the same
7747286274

Pull #15

github

jormaechea
Added SF context object docs
Pull Request #15: Jcn 469 implement state event parameter

263 of 263 branches covered (100.0%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 4 files covered. (100.0%)

401 of 401 relevant lines covered (100.0%)

17.85 hits per line

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

100.0
/lib/helpers/get-api-lambda-function-name.js
1
'use strict';
2

3
const startcase = require('lodash/startCase');
1✔
4

5
/**
6
 * Get the JANIS Lambda function name
7
 * @param {string} functionName In TitleCase or dash-case
8
 * @param {integer} serviceAccountId The AWS Account ID of the service
9
 * @returns {string}
10
 */
11
module.exports = (functionName, serviceAccountId, serviceName) => {
1✔
12

13
        const serviceTitle = startcase(serviceName).replace(/ /g, '');
1✔
14

15
        const env = process.env.JANIS_ENV;
1✔
16

17
        const formattedFunctionName = `API-${serviceTitle}-${functionName}-${env}`;
1✔
18

19
        return `${serviceAccountId}:function:${formattedFunctionName}`;
1✔
20
};
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

© 2025 Coveralls, Inc