support exclude file in --fast-list mode

This commit is contained in:
Iakov Davydov
2017-11-09 10:28:36 +01:00
committed by Nick Craig-Wood
parent 557dd8f031
commit 538246f6c3
5 changed files with 83 additions and 23 deletions

View File

@ -164,7 +164,8 @@ type includeDirTest struct {
func testDirInclude(t *testing.T, f *Filter, tests []includeDirTest) {
for _, test := range tests {
got := f.IncludeDirectory(test.in)
got, err := f.IncludeDirectory(nil)(test.in)
require.NoError(t, err)
assert.Equal(t, test.want, got, test.in)
}
}