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(
3232/// Verifies that a file does not exist at the specified path.
3333///
3434/// - Parameters:
35- /// - fixturePath : The absolute path to check for file non-existence.
35+ /// - path : The absolute path to check for file non-existence.
3636/// - comment: An optional comment to include in the failure message.
3737/// - sourceLocation: The source location where the expectation is made.
3838public func expectFileDoesNotExists (
39- at fixturePath : AbsolutePath,
39+ at path : AbsolutePath,
4040 _ comment: Comment? = nil ,
4141 sourceLocation: SourceLocation = #_sourceLocation,
4242) {
@@ -59,30 +59,6 @@ public func expectFileDoesNotExists(
5959 )
6060}
6161
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-
8662/// Verifies that a file exists and is executable at the specified path.
8763///
8864/// - Parameters:
You can’t perform that action at this time.
0 commit comments