Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

feat(custom-faker): add map support to custom fakers #70

Merged
merged 5 commits into from
Nov 15, 2019

Conversation

jostillmanns
Copy link
Contributor

@jostillmanns jostillmanns commented Jul 10, 2019

resolves #69

@jostillmanns jostillmanns changed the title add map support to custom fakers [resolves #69] add map support to custom fakers Jul 10, 2019
@bxcodec
Copy link
Owner

bxcodec commented Jul 11, 2019

Can you resolve the test, please? I think it still errors on Travis 🙏

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #70 into master will decrease coverage by 0.18%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
- Coverage   94.41%   94.22%   -0.19%     
==========================================
  Files          10       10              
  Lines         841      849       +8     
==========================================
+ Hits          794      800       +6     
- Misses         26       27       +1     
- Partials       21       22       +1
Impacted Files Coverage Δ
faker.go 89.46% <77.77%> (-0.31%) ⬇️

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 c9820bd...10e7754. Read the comment docs.

return map[string]interface{}{"foo": "bar"}, nil
})
if err != nil {
t.Error("Expected NoError, but Got Err", err)

Choose a reason for hiding this comment

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

suggest failing the test with t.Fatal

var sample = new(Sample)
err = FakeData(sample)
if err != nil {
t.Error("Expected NoError, but Got Err:", err)

Choose a reason for hiding this comment

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

suggest failing the test with t.Fatal

@bxcodec bxcodec changed the title add map support to custom fakers feat(custom-faker): add map support to custom fakers Nov 15, 2019
@bxcodec bxcodec merged commit f4822c5 into bxcodec:master Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom faker's don't support the Map type
3 participants