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

nikelborm / fetch-github-folder / 12804526304

16 Jan 2025 08:03AM UTC coverage: 56.577% (+0.2%) from 56.366%
12804526304

push

github

nikelborm
quick save: Thu Jan 16 11:03:21 MSK 2025

47 of 59 branches covered (79.66%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

75 existing lines in 8 files now uncovered.

310 of 572 relevant lines covered (54.2%)

2.37 hits per line

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

73.08
/src/parseToReadableStream.ts
1
import { Effect, gen } from 'effect/Effect';
1✔
2
import { Readable } from 'node:stream';
3
import { ReadableStream } from 'node:stream/web'
4
import { TaggedErrorVerifyingCause } from './TaggedErrorVerifyingCause.js';
5

6
export const ParseToReadableStream = <E, R>(
1✔
7
  self: Effect<unknown, E, R>
3✔
8
) => gen(function* () {
3✔
9
  const data = yield* self;
3✔
10

11
  if (data instanceof ArrayBuffer || data instanceof Buffer)
3✔
12
    return new Readable({
3✔
13
      read() {
3✔
14
        this.push(data);
3✔
15
        this.push(null);
3✔
16
      }
3✔
17
    });
3!
18

19
  if (data instanceof ReadableStream)
×
UNCOV
20
    return Readable.fromWeb(data);
×
21

22
  if (data instanceof Readable)
×
UNCOV
23
    return data;
×
24

25
  return yield * new FailedToParseDataToReadableStream()
×
UNCOV
26
})
×
27

28
export class FailedToParseDataToReadableStream extends TaggedErrorVerifyingCause()(
1✔
29
  'FailedToParseDataToReadableStream',
1✔
30
  'Failed to parse data to readable stream',
1✔
31
) {}
1✔
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