Skip to content

tests: checkout::tree: verify status entrycount changes on chmod#4371

Merged
carlosmn merged 2 commits intolibgit2:masterfrom
pks-t:pks/test-checkout-tree-refactoring
Oct 9, 2017
Merged

tests: checkout::tree: verify status entrycount changes on chmod#4371
carlosmn merged 2 commits intolibgit2:masterfrom
pks-t:pks/test-checkout-tree-refactoring

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Oct 9, 2017

Some minor improvements upon #4369.

pks-t added 2 commits October 9, 2017 09:13
There are multiple locations where we have the same code to check
whether the count of status list entries of a repository matches an
expected number. Extract that into a common function.
While we verify that we have no mode changes after calling
`git_checkout_tree`, we do not verify that the `p_chmod` calls actually
resulted in a changed entry. While we should assume that this works due
to separate tests for the status list, we should test for the change
being listed to avoid programming errors in the test.
@pks-t pks-t force-pushed the pks/test-checkout-tree-refactoring branch from e1cd4b3 to 09c15a7 Compare October 9, 2017 07:14
@carlosmn carlosmn merged commit fb11544 into libgit2:master Oct 9, 2017
@pks-t pks-t deleted the pks/test-checkout-tree-refactoring branch November 11, 2017 20:38
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