summaryrefslogtreecommitdiff
path: root/tests/iterator
Commit message (Collapse)AuthorAgeFilesLines
* tests: iterator::workdir: fix reference count in stale testPatrick Steinhardt2018-01-031-1/+1
| | | | | | | | | The test `iterator::workdir::filesystem_gunk` is usually not executed, as it is guarded by the environment variable "GITTEST_INVASIVE_SPEED" due to its effects on speed. As such, it has become stale and does not account for new references which have meanwhile been added to the testrepo, causing it to fail. Fix this by raising the number of expected references to 15.
* tests: iterator_helpers: assert number of iterator itemsPatrick Steinhardt2018-01-031-2/+1
| | | | | | | | | When the function `expect_iterator_items` surpasses the number of expected items, we simply break the loop. This causes us to trigger an assert later on which has message attached, which is annoying when trying to locate the root error cause. Instead, directly assert that the current count is still smaller or equal to the expected count inside of the loop.
* tests: status::worktree: indicate skipped tests on Win32Patrick Steinhardt2018-01-031-0/+2
| | | | | | | | | Some function bodies of tests which are not applicable to the Win32 platform are completely #ifdef'd out instead of calling `cl_skip()`. This leaves us with no indication that these tests are not being executed at all and may thus cause decreased scrutiny when investigating skipped tests. Improve the situation by calling `cl_skip()` instead of just doing nothing.
* tests: add merge-conflict branch for testrepoPatrick Steinhardt2017-02-131-1/+2
| | | | | Add a new branch that causes a merge conflict to `testrepo` so that we are able to test merging in worktrees.
* tests: add worktree test dataPatrick Steinhardt2017-02-131-1/+2
|
* tests: use a `size_t`Edward Thomson2016-07-242-8/+6
|
* tests: skip the unreadable file tests as rootEdward Thomson2016-04-111-0/+5
| | | | | | When running as root, skip the unreadable file tests, because, well, they're probably _not_ unreadable to root unless you've got some crazy NSA clearance-level honoring operating system shit going on.
* iterator: support trailing `/` in start for submodEdward Thomson2016-04-021-6/+12
| | | | | | Allow callers to specify a start path with a trailing slash to match a submodule, instead of just a directory. This is for some legacy behavior that's sort of dumb, but there it is.
* leaks: fix some leaks in the testsEdward Thomson2016-03-313-0/+8
|
* iterator: new workdir-iterator test for pathlist + includings treesMarc Strapetz2016-03-241-0/+26
|
* iterator: new index-iterator test for pathlist + includings treesMarc Strapetz2016-03-241-0/+31
|
* iterator: more pathlist-related tests should test actual pathsMarc Strapetz2016-03-242-6/+23
|
* iterator: don't run the gunk test by default on CIEdward Thomson2016-03-241-1/+1
| | | | (It's slow!)
* iterator: refactor index iteratorEdward Thomson2016-03-244-58/+688
|
* iterator: give the tests a proper hierarchyEdward Thomson2016-03-245-0/+3375
Iterator tests were split over repo::iterator and diff::iterator, with duplication between the two. Move them to iterator::index, iterator::tree, and iterator::workdir.