Index: pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
diff --git a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
index 5bf325667245ce1451fe64d67e919e9f65db5f41..1319defb9386dae1cd0d82dfb22be44bcad8ed4d 100644 |
--- a/pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
+++ b/pkg/analyzer/test/file_system/physical_resource_provider_test.dart |
@@ -254,6 +254,26 @@ class FolderTest extends _BaseTest { |
expect(child.exists, isTrue); |
} |
+ void test_getChildAssumingFile_doesNotExist() { |
+ File child = folder.getChildAssumingFile('no-such-resource'); |
+ expect(child, isNotNull); |
+ expect(child.exists, isFalse); |
+ } |
+ |
+ void test_getChildAssumingFile_file() { |
+ new io.File(join(path, 'myFile')).createSync(); |
+ File child = folder.getChildAssumingFile('myFile'); |
+ expect(child, isNotNull); |
+ expect(child.exists, isTrue); |
+ } |
+ |
+ void test_getChildAssumingFile_folder() { |
+ new io.Directory(join(path, 'myFolder')).createSync(); |
+ File child = folder.getChildAssumingFile('myFolder'); |
+ expect(child, isNotNull); |
+ expect(child.exists, isFalse); |
+ } |
+ |
void test_getChildAssumingFolder_doesNotExist() { |
Folder child = folder.getChildAssumingFolder('no-such-resource'); |
expect(child, isNotNull); |