Test cases for ignore #include

This commit is contained in:
Jakob Borg
2014-08-30 09:22:23 +02:00
committed by Audrius Butkevicius
parent 8c42aea827
commit 7c604beb73
18 changed files with 78 additions and 43 deletions

View File

View File

@@ -1,2 +1,6 @@
.*
quux
#include excludes
#include nonexistent-file
bfile
dir1/cfile

1
scanner/testdata/afile vendored Normal file
View File

@@ -0,0 +1 @@
foo

View File

@@ -1 +0,0 @@
foobarbaz

View File

@@ -1 +0,0 @@
baazquux

1
scanner/testdata/bfile vendored Normal file
View File

@@ -0,0 +1 @@
bar

1
scanner/testdata/dir1/cfile vendored Normal file
View File

@@ -0,0 +1 @@
baz

1
scanner/testdata/dir1/dfile vendored Normal file
View File

@@ -0,0 +1 @@
quux

1
scanner/testdata/dir2/cfile vendored Normal file
View File

@@ -0,0 +1 @@
baz

1
scanner/testdata/dir2/dfile vendored Normal file
View File

@@ -0,0 +1 @@
quux

1
scanner/testdata/dir3/cfile vendored Normal file
View File

@@ -0,0 +1 @@
baz

1
scanner/testdata/dir3/dfile vendored Normal file
View File

@@ -0,0 +1 @@
quux

View File

4
scanner/testdata/excludes vendored Normal file
View File

@@ -0,0 +1,4 @@
dir2/dfile
#include excludes
#include further-excludes
#include loop-excludes

View File

@@ -1 +0,0 @@
foobar

1
scanner/testdata/further-excludes vendored Normal file
View File

@@ -0,0 +1 @@
dir3

1
scanner/testdata/loop-excludes vendored Normal file
View File

@@ -0,0 +1 @@
#include excludes