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

Updated GTStructure to use pointers to items instead of value receivers #5

Merged
merged 2 commits into from
Mar 26, 2018

Conversation

jaroslaw-bochniak
Copy link
Contributor

Updated GTStructure to use pointers to items instead of value receivers.
This is a breaking change as the public method signatures and main type has been modified.

  • allows creation of the structure and flexible mutating it before actual printing
  • pointer receiver should be more efficient for large data structures
  • added simple test + test resources

…rs. (#1)

This is a breaking change as the public method signatures and main type has been modified.

- allows creation of the structure and flexible mutating it before actual printing
- pointer receiver should be more efficient for large structures
- added simple test + test resources
gotree_test.go Outdated
)

// TestFolderTree should test if reading a folder returns rendered structure as expected
func TestFolderTree(t *testing.T) {
Copy link
Owner

Choose a reason for hiding this comment

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

I don't like the idea of keeping the testfiles in the project, we should Improve the ReadFolder to be mockable or remove this test for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure no problem.

- removed test folder we should find a better solution for testing `ReadFolder` method
- updated readme to reflect signature changes
@d6o d6o merged commit 50d8646 into d6o:master Mar 26, 2018
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