(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestInvalidRecursiveDirectories(t *testing.T) { |
| 113 | t.Parallel() |
| 114 | |
| 115 | data := []struct { |
| 116 | pattern string |
| 117 | dir string |
| 118 | }{ |
| 119 | {"/path", "/other/file.php"}, |
| 120 | {"/path/**", "/other/file.php"}, |
| 121 | {".", "/other/file.php"}, |
| 122 | } |
| 123 | |
| 124 | for _, d := range data { |
| 125 | t.Run(d.pattern, func(t *testing.T) { |
| 126 | t.Parallel() |
| 127 | |
| 128 | assertPatternNotMatch(t, d.pattern, d.dir) |
| 129 | }) |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | func TestValidNonRecursiveFilePatterns(t *testing.T) { |
| 134 | t.Parallel() |
nothing calls this directly
no test coverage detected