Commit d7eca4c39cdad217a813a3f02f3b8eb3ce3159f9

Julian Ganz 2018-06-01T08:57:17

refdb_fs: add test for globbing of nonexistant refs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tests/refs/foreachglob.c b/tests/refs/foreachglob.c
index a09191e..a135293 100644
--- a/tests/refs/foreachglob.c
+++ b/tests/refs/foreachglob.c
@@ -62,6 +62,11 @@ void test_refs_foreachglob__retrieve_local_branches(void)
 	assert_retrieval("refs/heads/*", 12);
 }
 
+void test_refs_foreachglob__retrieve_nonexistant(void)
+{
+	assert_retrieval("refs/nonexistent/*", 0);
+}
+
 void test_refs_foreachglob__retrieve_partially_named_references(void)
 {
 	/*