Commit 627b583
authored
[compiler][snap] Fix for filter mode with nested files, 'error.' prefix (facebook#35215)
Fixes some issues i ran into w my recent snap changes:
* Correctly match against patterns that contain subdirectories, eg
`fbt/fbt-call`
* When checking if the input pattern has an extension, only prune known
supported extensions. Our convention of `error.<name>` for fixtures that
error makes the rest of the test name look like an extension to
`path.extname()`.
Tested with lots of different patterns including `error.` examples at
the top level and in nested directories, etc.1 parent fb18ad3 commit 627b583
1 file changed
+10
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 47 | | |
63 | 48 | | |
64 | 49 | | |
| |||
134 | 119 | | |
135 | 120 | | |
136 | 121 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
140 | 127 | | |
141 | 128 | | |
142 | 129 | | |
143 | | - | |
| 130 | + | |
144 | 131 | | |
145 | 132 | | |
146 | 133 | | |
| |||
181 | 168 | | |
182 | 169 | | |
183 | 170 | | |
184 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
185 | 175 | | |
186 | 176 | | |
187 | 177 | | |
| |||
0 commit comments