Skip to content

#5 - adds support for properties with multiple values - #11

Open
GorthMohogany wants to merge 2 commits into
emersion:masterfrom
GorthMohogany:master
Open

#5 - adds support for properties with multiple values#11
GorthMohogany wants to merge 2 commits into
emersion:masterfrom
GorthMohogany:master

Conversation

@GorthMohogany

Copy link
Copy Markdown
Contributor

No description provided.

@codecov-io

codecov-io commented Oct 1, 2018

Copy link
Copy Markdown

Codecov Report

Merging #11 into master will increase coverage by 0.74%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #11      +/-   ##
=========================================
+ Coverage   82.45%   83.2%   +0.74%     
=========================================
  Files           4       4              
  Lines         359     375      +16     
=========================================
+ Hits          296     312      +16     
  Misses         46      46              
  Partials       17      17
Impacted Files Coverage Δ
decoder.go 80.92% <100%> (+2.24%) ⬆️

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 be59a9b...252a6c5. Read the comment docs.

@emersion emersion left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for your PR, sorry for the delay.

I also need to read again the RFC to make sure we can do this on all fields.

Comment thread decoder.go

func parseLine(l string) (key string, field *Field, err error) {
field = new(Field)
const placeholder = "\uFFFD"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Instead of using a placeholder (which could be in the input), can we replace this logic with a proper char-by-char parser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants