Underscore the NIOFileSystem module (#2683)

Motivation:

The 'NIOFileSystem' target isn't yet stable API and is made available
via the '_NIOFileSystemModule' product. This doesn't make it obvious
enough that the module isn't yet considered stable.

Modifications:

- Rename 'NIOFileSystem' and 'NIOFileSystemFoundationCompat' such that
  they are prefixed with '_'.

Result:

More obviously not stable API
This commit is contained in:
George Barnett authored and GitHub committed 2024-03-14 08:16:36 -07:00
1 parent b92e058cf8
commit df5745d6be
33 files changed
+62 -60

No files matched your search

@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import NIOFileSystem
import _NIOFileSystem
import XCTest
class ByteCountTests: XCTestCase {
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import NIOFileSystem
import _NIOFileSystem
import XCTest
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
@@ -14,7 +14,7 @@
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import NIOCore
import NIOFileSystem
import _NIOFileSystem
import XCTest
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import XCTest
#if ENABLE_MOCKING
+1 -1
View File
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import NIOFileSystem
import _NIOFileSystem
import XCTest
#if canImport(Darwin)
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import XCTest
final class FileOpenOptionsTests: XCTestCase {
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import XCTest
final class FileSystemErrorTests: XCTestCase {
+1 -1
View File
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import XCTest
#if canImport(Darwin)
@@ -14,7 +14,7 @@
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import Atomics
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import XCTest
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
@@ -15,7 +15,7 @@
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import XCTest
@testable import NIOFileSystem
@testable import _NIOFileSystem
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
final class BufferedStreamTests: XCTestCase {
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import XCTest
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
@@ -22,7 +22,7 @@
*/
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import SystemPackage
import XCTest
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
@_spi(Testing) import NIOFileSystem
@_spi(Testing) import _NIOFileSystem
import SystemPackage
import XCTest
@@ -13,7 +13,7 @@
//===----------------------------------------------------------------------===//
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS) || os(Linux) || os(Android)
import NIOFileSystem
import _NIOFileSystem
import XCTest
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)