Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

plumbing/object: move difftree to object package #284

Merged
merged 2 commits into from
Feb 24, 2017
Merged

plumbing/object: move difftree to object package #284

merged 2 commits into from
Feb 24, 2017

Conversation

ajnavarro
Copy link
Contributor

@ajnavarro ajnavarro commented Feb 22, 2017

  • To avoid cyclic dependency errors, we move all the difftree files to object package.
  • Added Diff method to Tree object.

@@ -1,11 +1,10 @@
package difftree
package object
Copy link
Contributor

@alcortesm alcortesm Feb 22, 2017

Choose a reason for hiding this comment

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

Since you rename the change_adaptor.go file to difftree.go, you should include this tests in difftree_test.go, and rename the suite, otherwise nobody will know what change_adaptor is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because change_adaptor_test.go is really huge, y keept the change_adaptor.go file with his original content.

@codecov-io
Copy link

codecov-io commented Feb 22, 2017

Codecov Report

Merging #284 into master will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
+ Coverage   76.93%   77.03%   +0.09%     
==========================================
  Files         116      116              
  Lines        7900     7902       +2     
==========================================
+ Hits         6078     6087       +9     
+ Misses       1168     1161       -7     
  Partials      654      654
Impacted Files Coverage Δ
plumbing/object/change_adaptor.go 100% <100%> (ø)
plumbing/object/difftree.go 91.3% <100%> (ø)
plumbing/object/treenoder.go 81.03% <100%> (ø)
plumbing/object/change.go 100% <100%> (ø)
plumbing/object/tree.go 74.17% <100%> (+3.56%)

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 f93e571...cb51ef3. Read the comment docs.

@mcuadros
Copy link
Contributor

@ajnavarro rebase please

- To avoid ciclic dependency errors, we move all the difftree files to object package.
- Added Diff method to Tree object.
@ajnavarro
Copy link
Contributor Author

@mcuadros rebased.

@mcuadros mcuadros merged commit 39f43b5 into src-d:master Feb 24, 2017
@ajnavarro ajnavarro deleted the improvement/move-difftree-to-object branch February 24, 2017 11:38
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants