close
Skip to content

Add decodeStream#46

Merged
sergeyzenchenko merged 5 commits intomasterfrom
decodeStream
May 30, 2019
Merged

Add decodeStream#46
sergeyzenchenko merged 5 commits intomasterfrom
decodeStream

Conversation

@sergeyzenchenko
Copy link
Copy Markdown
Collaborator

No description provided.

…ecodeStream

# Conflicts:
#	src/decodeAsync.ts
Comment thread src/Decoder.ts Outdated

try {
while (true) {
let result = this.decodeSync();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let result = this.decodeSync();
const result = this.decodeSync();

Comment thread src/decodeAsync.ts
for await (let item of decoder.decodeArrayStream(stream)) {
yield item;
}
return decoder.decodeArrayStream(stream);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread test/decodeStream.test.ts Outdated

const result = [];

for await (let item of decodeStream(createStream())) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for await (let item of decodeStream(createStream())) {
for await (const item of decodeStream(createStream())) {

@sergeyzenchenko
Copy link
Copy Markdown
Collaborator Author

fixed @gfx

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 30, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@580e798). Click here to learn what that means.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #46   +/-   ##
=========================================
  Coverage          ?   93.45%           
=========================================
  Files             ?       15           
  Lines             ?      840           
  Branches          ?      175           
=========================================
  Hits              ?      785           
  Misses            ?       29           
  Partials          ?       26
Impacted Files Coverage Δ
src/decodeAsync.ts 100% <100%> (ø)
src/Decoder.ts 95.88% <77.77%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 580e798...ad1d0d0. Read the comment docs.

Copy link
Copy Markdown
Member

@gfx gfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@gfx gfx mentioned this pull request May 30, 2019
@sergeyzenchenko sergeyzenchenko merged commit 8d59417 into master May 30, 2019
@sergeyzenchenko sergeyzenchenko deleted the decodeStream branch May 30, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants