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

Full basic test coverage (#26) #36

Merged
merged 2 commits into from
May 14, 2019
Merged

Full basic test coverage (#26) #36

merged 2 commits into from
May 14, 2019

Conversation

dergluck
Copy link
Contributor

Hi,

I have added an additional numerics structure that contains plain and pointers values. Also initialization code added to the test function. Test snapshots eyeballed and updated.

Hope this works as requested.

Copy link
Owner

@bradleyjkemp bradleyjkemp left a comment

Choose a reason for hiding this comment

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

Thanks for contributing this! Just two small clean up things and then this looks good to merge 👍 CI is broken at the moment but I tested locally and the tests all pass

go.sum Outdated
@@ -1,5 +1,6 @@
github.com/bradleyjkemp/cupaloy/v2 v2.4.0 h1:ck3EgwgVgIBuuOvmhK3oHwPP5KH//xcMTWcXERPQ9hY=
github.com/bradleyjkemp/cupaloy/v2 v2.4.0/go.mod h1:TD5UU0rdYTbu/TtuwFuWrtiRARuN7mtRipvs/bsShSE=
Copy link
Owner

Choose a reason for hiding this comment

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

I think if you run go mod tidy this will clean up the older cupaloy version

3:<4key0> -> 1:name;
3 [label="<name> structMap |{<f0> id | \"leaf\"} |{<f1> links | {{<4key0> *memviz_test.structMap| <4value0> true}}} "];
5 [label="<name> structMap |{<f0> id | \"leaf2\"} |{<f1> links | map[*memviz_test.structMap]bool\{\}} "];
3 [label="<name> structMap |{<f0> id | \"leaf2\"} |{<f1> links | map[*memviz_test.structMap]bool\{\}} "];
Copy link
Owner

Choose a reason for hiding this comment

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

This change just happens because maps don't have deterministic output (yet). Can you revert the changes to this file?

@dergluck
Copy link
Contributor Author

dergluck commented May 13, 2019

Hi, the changes are made as suggested

@bradleyjkemp bradleyjkemp merged commit e5ce8f3 into bradleyjkemp:master May 14, 2019
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.

2 participants