Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add GetRealAddress & coverage badge #14

Merged
merged 7 commits into from
Jan 17, 2023
Merged

Conversation

wolf-joe
Copy link
Contributor

@wolf-joe wolf-joe commented Dec 11, 2022

fix #11

@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2022

Codecov Report

Base: 88.99% // Head: 88.95% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (a20ab77) compared to base (12df95a).
Patch coverage: 81.81% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
- Coverage   88.99%   88.95%   -0.04%     
==========================================
  Files          12       12              
  Lines        1735     1747      +12     
==========================================
+ Hits         1544     1554      +10     
- Misses        137      138       +1     
- Partials       54       55       +1     
Impacted Files Coverage Δ
faker.go 85.87% <ø> (+0.01%) ⬆️
address.go 95.23% <81.81%> (-4.77%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wolf-joe wolf-joe requested a review from geshtng January 11, 2023 05:10
address.go Outdated
Comment on lines 92 to 93
Address1 string `json:"address1"`
Address2 string `json:"address2"`
Copy link
Contributor

Choose a reason for hiding this comment

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

What are this address1 and address2 represent to?
Do we have a better naming?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

address1 and address2 are copy from original json file.
looks like address1 is just normal address, address2 is empty in mostly case.
I will remove address2 just now.

@bxcodec
Copy link
Contributor

bxcodec commented Jan 17, 2023

Just minor comment, overall LGTM

@wolf-joe wolf-joe merged commit 04f3781 into go-faker:main Jan 17, 2023
}

type RealAddress struct {
Address string `json:"address1"`
Copy link
Contributor

Choose a reason for hiding this comment

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

the JSON tag still address1

Copy link
Contributor

Choose a reason for hiding this comment

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

should we rename it @wolf-joe ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, I would prefer to keep the origin JSON data structure

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.

Add support for Street Address
5 participants