File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed
Sources/_InternalTestSupport Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ public func expectFileExists(
32
32
/// Verifies that a file does not exist at the specified path.
33
33
///
34
34
/// - Parameters:
35
- /// - fixturePath : The absolute path to check for file non-existence.
35
+ /// - path : The absolute path to check for file non-existence.
36
36
/// - comment: An optional comment to include in the failure message.
37
37
/// - sourceLocation: The source location where the expectation is made.
38
38
public func expectFileDoesNotExists (
39
- at fixturePath : AbsolutePath,
39
+ at path : AbsolutePath,
40
40
_ comment: Comment? = nil ,
41
41
sourceLocation: SourceLocation = #_sourceLocation,
42
42
) {
@@ -59,30 +59,6 @@ public func expectFileDoesNotExists(
59
59
)
60
60
}
61
61
62
- public func expectFileDoesNotExists (
63
- at path: AbsolutePath,
64
- _ comment: Comment? = nil ,
65
- sourceLocation: SourceLocation = #_sourceLocation,
66
- ) {
67
- let commentPrefix =
68
- if let comment {
69
- " \( comment) : "
70
- } else {
71
- " "
72
- }
73
- let msgSuffix : String
74
- do {
75
- msgSuffix = try " Directory contents: \( localFileSystem. getDirectoryContents ( path. parentDirectory) ) "
76
- } catch {
77
- msgSuffix = " "
78
- }
79
- #expect(
80
- !localFileSystem. exists ( path) ,
81
- " \( commentPrefix) File: ' \( path) ' was not expected to exist, but does. \( msgSuffix) ) " ,
82
- sourceLocation: sourceLocation,
83
- )
84
- }
85
-
86
62
/// Verifies that a file exists and is executable at the specified path.
87
63
///
88
64
/// - Parameters:
You can’t perform that action at this time.
0 commit comments