diff options
author | Tim Clem <timothy.clem@gmail.com> | 2012-08-12 15:04:38 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-08-12 15:04:38 +0400 |
commit | 1c6a28d0213b857347b9fdea56311ee10f3bac69 (patch) | |
tree | 8bc70b065e254ef617e0c040171b9e3d519f4437 /LibGit2Sharp.Tests/CommitFixture.cs | |
parent | b6e924efa26ce375a3014c1ad8e0803a1dc594f8 (diff) |
Add test coverage commits query through globed references
Diffstat (limited to 'LibGit2Sharp.Tests/CommitFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/CommitFixture.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/CommitFixture.cs b/LibGit2Sharp.Tests/CommitFixture.cs index 0b9749b4..5cddec9a 100644 --- a/LibGit2Sharp.Tests/CommitFixture.cs +++ b/LibGit2Sharp.Tests/CommitFixture.cs @@ -290,6 +290,28 @@ namespace LibGit2Sharp.Tests } [Fact] + public void CanEnumerateCommitsUsingGlob() + { + AssertEnumerationOfCommits( + repo => new Filter { Since = repo.Refs.FromGlob("refs/heads/*") }, + new[] + { + "4c062a6", "e90810b", "6dcf9bf", "a4a7dce", "be3563a", "c47800c", "9fd738e", "4a202b3", "41bc8c6", "5001298", "5b5b025", "8496071" + }); + } + + [Fact] + public void CanHideCommitsUsingGlob() + { + AssertEnumerationOfCommits( + repo => new Filter { Since = "refs/heads/packed-test", Until = repo.Refs.FromGlob("*/packed") }, + new[] + { + "4a202b3", "5b5b025", "8496071" + }); + } + + [Fact] public void CanEnumerateCommitsFromAnAnnotatedTag() { CanEnumerateCommitsFromATag(t => t); |