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

ckapps / overckd / 13656842746

31 May 2023 01:52PM UTC coverage: 20.328%. First build
13656842746

push

github

web-flow
Merge pull request #17 from ckapps/chore/update-deps

Chore/update deps

32 of 288 branches covered (11.11%)

Branch coverage included in aggregate %.

32 of 270 new or added lines in 73 files covered. (11.85%)

464 of 2152 relevant lines covered (21.56%)

0.76 hits per line

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

0.0
/packages/yaml-parser/src/file-codec/recipe-file.ts
1
import * as t from 'io-ts';
×
2

3
import { Recipe } from '@overckd/domain';
4

5
import { recipe } from '../codec';
×
6
import { overckdFileCodec } from './overckd-file';
×
7

8
const filetype = 'recipe';
×
9
const recipeFileContent = overckdFileCodec(
×
10
  filetype,
11
  '1.0.0',
12
  t.type({
13
    recipe: recipe,
14
  }),
15
);
16

17
type RecipeFileContent = t.TypeOf<typeof recipeFileContent>;
18

19
const dtoParser = new t.Type<Recipe, RecipeFileContent, RecipeFileContent>(
×
20
  `${filetype}-content`,
21
  (a): a is Recipe => typeof a === 'object',
×
22
  (i, c) => {
23
    return 'recipe' in i
×
24
      ? t.success(i.recipe as unknown as Recipe)
×
25
      : t.failure(i, c);
26
  },
NEW
27
  a => a as unknown as RecipeFileContent,
×
28
);
29

30
/**
31
 * Codec for encoding/decoding recipe files
32
 */
33
export const recipeFile = recipeFileContent.pipe(dtoParser);
×
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