Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

Alorel / personal-build-tools / 801

20 Mar 2019 - 7:52 coverage increased (+2.9%) to 83.558%
801

Pull #76

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
chore(package): update lockfile yarn.lock
Pull Request #76: Update rollup to the latest version 🚀

304 of 452 branches covered (67.26%)

Branch coverage included in aggregate %.

936 of 1032 relevant lines covered (90.7%)

44.74 hits per line

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

90.91
/src/lib/sync-request/gh-repo/gh-repo.ts
1
import {memoize} from 'lodash';
2
import {join} from 'path';
12×
3
import {ext} from '../../../const/ext';
12×
4
import {execLocal} from '../../../fns/execLocal';
12×
5
import {Log} from '../../Log';
12×
6
import {RepoDetails} from './RepoDetails';
12×
7

12×
8
function getGhRepoData$(token: string, owner: string, repo: string): RepoDetails {
9
  const args = [
10
    '--token',
11
    token,
12
    '--owner',
13
    owner,
14
    '--repo',
15
    repo
16
  ];
17
  Log.info(`Querying GitHub repo data for ${owner}/${repo}`);
3×
18
  const ret = execLocal(join(__dirname, `get.${ext}`), args);
3×
19

20
  if (ret.status === 0) {
3×
21
    return JSON.parse(ret.stdout);
UNCOV
22
  }
!
23

24
  throw new Error(ret.stderr);
12×
25
}
26

27
export const getGhRepoData: typeof getGhRepoData$ = memoize(getGhRepoData$);
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc