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

Test issue#93. Error in []Struct properties #94

Merged

Conversation

dpordomingo
Copy link
Contributor

described by #93

@dpordomingo dpordomingo changed the title Add test for issue#93. Error in []Struct properties Test issue#93. Error in []Struct properties Feb 13, 2017
tests/kallax.go Outdated
@@ -1765,6 +1767,8 @@ func (r *JSONModel) Value(col string) (interface{}, error) {
return r.Foo, nil
case "bar":
return types.JSON(r.Bar), nil
case "baz_slice":
return types.Slice(r.BazSlice), nil
Copy link
Contributor

Choose a reason for hiding this comment

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

the problem might be this. It should be types.JSON, not types.Slice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is!!
now, lets see how to fix that autogenerated code :D

@dpordomingo
Copy link
Contributor Author

I think it's now solved @erizocosmico

@codecov-io
Copy link

codecov-io commented Feb 13, 2017

Codecov Report

Merging #94 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   80.72%   80.72%           
=======================================
  Files          15       15           
  Lines        2241     2241           
=======================================
  Hits         1809     1809           
  Misses        293      293           
  Partials      139      139
Impacted Files Coverage Δ
generator/types.go 85.01% <100%> (ø)

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 7c6286c...fb0fe3d. Read the comment docs.

@dpordomingo dpordomingo merged commit 43cfc4c into src-d:master Feb 13, 2017
@dpordomingo dpordomingo deleted the issue93-errorWhenStructCollection branch February 13, 2017 21:12
@dpordomingo dpordomingo restored the issue93-errorWhenStructCollection branch February 14, 2017 17:21
@dpordomingo dpordomingo deleted the issue93-errorWhenStructCollection branch February 14, 2017 17:45
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