@@ -52,6 +52,7 @@ late File testFile9;
52
52
late File testFile10;
53
53
late File excludeFile1;
54
54
late File excludeFile2;
55
+ late File skippedFile;
55
56
56
57
void main () {
57
58
group ('config file tests' , () {
@@ -362,7 +363,7 @@ text that should be added to the file. */''',
362
363
363
364
final includedPaths = results.includedPaths;
364
365
expect (includedPaths, isNotNull);
365
- expect (includedPaths.length, equals (7 ));
366
+ expect (includedPaths.length, equals (8 ));
366
367
// Order is not guaranteed
367
368
expect (includedPaths.contains (testFile1.path), true );
368
369
expect (contentsBeforeUpdate, isNot (equals (contentsAfterUpdate)));
@@ -372,6 +373,7 @@ text that should be added to the file. */''',
372
373
expect (includedPaths.contains (testFile8.path), true );
373
374
expect (includedPaths.contains (testFile9.path), true );
374
375
expect (includedPaths.contains (testFile10.path), true );
376
+ expect (includedPaths.contains (skippedFile.path), true );
375
377
376
378
final updatedPaths = results.updatedPaths;
377
379
expect (updatedPaths, isNotNull);
@@ -384,6 +386,7 @@ text that should be added to the file. */''',
384
386
expect (updatedPaths.contains (testFile8.path), true );
385
387
expect (updatedPaths.contains (testFile9.path), true );
386
388
expect (updatedPaths.contains (testFile10.path), true );
389
+ expect (updatedPaths.contains (skippedFile.path), false );
387
390
});
388
391
389
392
test ('license headers bulk update can be dry run' , () async {
@@ -550,6 +553,7 @@ update_paths:
550
553
/// repo_root/
551
554
/// test1.ext1
552
555
/// test2.ext2
556
+ /// test.skip
553
557
/// .hidden/
554
558
/// test3.ext1
555
559
/// sub_dir1/
@@ -584,6 +588,10 @@ Future<void> _setupTestDirectoryStructure() async {
584
588
..createSync (recursive: true );
585
589
testFile2.writeAsStringSync (licenseText3 + extraText, flush: true );
586
590
591
+ skippedFile = File (p.join (repoRoot.path, 'test.skip' ))
592
+ ..createSync (recursive: true );
593
+ skippedFile.writeAsStringSync (extraText, flush: true );
594
+
587
595
// Setup /repo_root/.hidden directory structure
588
596
Directory (p.join (repoRoot.path, '.hidden' )).createSync (recursive: true );
589
597
0 commit comments