| /external/sdv/vsomeip/third_party/boost/filesystem/test/ |
| D | deprecated_test.cpp | 1 // deprecated_test program --------------------------------------------------// 27 using boost::filesystem::path; 35 void check(const fs::path & source, in check() 49 PATH_CHECK(path("").normalize(), ""); in normalize_test() 50 PATH_CHECK(path("/").normalize(), "/"); in normalize_test() 51 PATH_CHECK(path("//").normalize(), "//"); in normalize_test() 52 PATH_CHECK(path("///").normalize(), "/"); in normalize_test() 53 PATH_CHECK(path("f").normalize(), "f"); in normalize_test() 54 PATH_CHECK(path("foo").normalize(), "foo"); in normalize_test() 55 PATH_CHECK(path("foo/").normalize(), "foo/."); in normalize_test() [all …]
|
| /external/okio/okio/src/jvmMain/kotlin/okio/ |
| D | Path.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 19 import java.nio.file.Path as NioPath 40 actual class Path internal actual constructor( class 42 ) : Comparable<Path> { 43 actual val root: Path? 71 actual val parent: Path? 78 actual operator fun div(child: String): Path = commonResolve(child, normalize = false) in div() 81 actual operator fun div(child: ByteString): Path = commonResolve(child, normalize = false) in div() 84 actual operator fun div(child: Path): Path = commonResolve(child, normalize = false) in div() 86 actual fun resolve(child: String, normalize: Boolean): Path = in div() [all …]
|
| /external/okio/okio/src/commonTest/kotlin/okio/ |
| D | PathTest.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 import okio.Path.Companion.toPath 29 val path = "/".toPath() in unixRoot() constant 30 assertEquals(path, path.normalized()) in unixRoot() 31 assertEquals(path, path.root) in unixRoot() 32 assertEquals(listOf(), path.segments) in unixRoot() 33 assertEquals("/", path.toString()) in unixRoot() 34 assertNull(path.parent) in unixRoot() 35 assertNull(path.volumeLetter) in unixRoot() 36 assertEquals("", path.name) in unixRoot() [all …]
|
| /external/okio/okio/src/nonJvmMain/kotlin/okio/ |
| D | Path.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 37 actual class Path internal actual constructor( class 39 ) : Comparable<Path> { 40 actual val root: Path? 64 actual val parent: Path? 70 actual operator fun div(child: String): Path = commonResolve(child, normalize = false) in div() 72 actual operator fun div(child: ByteString): Path = commonResolve(child, normalize = false) in div() 74 actual operator fun div(child: Path): Path = commonResolve(child, normalize = false) in div() 76 actual fun resolve(child: String, normalize: Boolean): Path = in div() 77 commonResolve(child, normalize = normalize) in div() [all …]
|
| /external/okio/okio/src/commonMain/kotlin/okio/internal/ |
| D | Path.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 16 @file:JvmName("-Path") // A leading '-' hides this class from Java. 25 import okio.Path 26 import okio.Path.Companion.toPath 44 internal inline fun Path.commonRoot(): Path? { in commonRoot() 46 -1 -> null in commonRoot() 47 else -> Path(bytes.substring(0, rootLength)) in commonRoot() 52 internal inline fun Path.commonSegments(): List<String> { in commonSegments() 58 internal inline fun Path.commonSegmentsBytes(): List<ByteString> { in commonSegmentsBytes() 63 if (segmentStart == -1) { in commonSegmentsBytes() [all …]
|
| /external/mockftpserver/tags/2.0-rc1/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | FakeWindowsFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 * @version $Revision: $ - $Date: $ 42 // ------------------------------------------------------------------------- 44 // ------------------------------------------------------------------------- 60 assert fileSystem.path(null, null) == "" 61 assert fileSystem.path(null, "abc") == "abc" 62 assert fileSystem.path("abc", null) == "abc" 63 assert fileSystem.path("", "") == "" 64 assert fileSystem.path("", "abc") == "abc" 65 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.1/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| D | UnixFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 54 assert fileSystem.path(null, null) == "" 55 assert fileSystem.path(null, "abc") == "abc" 56 assert fileSystem.path("abc", null) == "abc" 57 assert fileSystem.path("", "") == "" 58 assert fileSystem.path("", "abc") == "abc" 59 assert fileSystem.path("abc", "") == "abc" 60 assert fileSystem.path("abc", "DEF") == "abc/DEF" 61 assert fileSystem.path("abc/", "def") == "abc/def" [all …]
|
| /external/mockftpserver/tags/2.3/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 39 // ------------------------------------------------------------------------- 41 // ------------------------------------------------------------------------- 57 assert fileSystem.path(null, null) == "" 58 assert fileSystem.path(null, "abc") == "abc" 59 assert fileSystem.path("abc", null) == "abc" 60 assert fileSystem.path("", "") == "" 61 assert fileSystem.path("", "abc") == "abc" 62 assert fileSystem.path("abc", "") == "abc" [all …]
|
| D | UnixFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 52 assert fileSystem.path(null, null) == "" 53 assert fileSystem.path(null, "abc") == "abc" 54 assert fileSystem.path("abc", null) == "abc" 55 assert fileSystem.path("", "") == "" 56 assert fileSystem.path("", "abc") == "abc" 57 assert fileSystem.path("abc", "") == "abc" 58 assert fileSystem.path("abc", "DEF") == "abc/DEF" 59 assert fileSystem.path("abc/", "def") == "abc/def" [all …]
|
| /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 39 // ------------------------------------------------------------------------- 41 // ------------------------------------------------------------------------- 57 assert fileSystem.path(null, null) == "" 58 assert fileSystem.path(null, "abc") == "abc" 59 assert fileSystem.path("abc", null) == "abc" 60 assert fileSystem.path("", "") == "" 61 assert fileSystem.path("", "abc") == "abc" 62 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.2/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 39 // ------------------------------------------------------------------------- 41 // ------------------------------------------------------------------------- 57 assert fileSystem.path(null, null) == "" 58 assert fileSystem.path(null, "abc") == "abc" 59 assert fileSystem.path("abc", null) == "abc" 60 assert fileSystem.path("", "") == "" 61 assert fileSystem.path("", "abc") == "abc" 62 assert fileSystem.path("abc", "") == "abc" [all …]
|
| D | UnixFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 52 assert fileSystem.path(null, null) == "" 53 assert fileSystem.path(null, "abc") == "abc" 54 assert fileSystem.path("abc", null) == "abc" 55 assert fileSystem.path("", "") == "" 56 assert fileSystem.path("", "abc") == "abc" 57 assert fileSystem.path("abc", "") == "abc" 58 assert fileSystem.path("abc", "DEF") == "abc/DEF" 59 assert fileSystem.path("abc/", "def") == "abc/def" [all …]
|
| /external/mockftpserver/tags/2.0.2/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.4/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 39 // ------------------------------------------------------------------------- 41 // ------------------------------------------------------------------------- 57 assert fileSystem.path(null, null) == "" 58 assert fileSystem.path(null, "abc") == "abc" 59 assert fileSystem.path("abc", null) == "abc" 60 assert fileSystem.path("", "") == "" 61 assert fileSystem.path("", "abc") == "abc" 62 assert fileSystem.path("abc", "") == "abc" [all …]
|
| D | UnixFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 52 assert fileSystem.path(null, null) == "" 53 assert fileSystem.path(null, "abc") == "abc" 54 assert fileSystem.path("abc", null) == "abc" 55 assert fileSystem.path("", "") == "" 56 assert fileSystem.path("", "abc") == "abc" 57 assert fileSystem.path("abc", "") == "abc" 58 assert fileSystem.path("abc", "DEF") == "abc/DEF" 59 assert fileSystem.path("abc/", "def") == "abc/def" [all …]
|
| /external/mockftpserver/tags/2.5/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 * @version $Revision$ - $Date$ 39 // ------------------------------------------------------------------------- 41 // ------------------------------------------------------------------------- 57 assert fileSystem.path(null, null) == "" 58 assert fileSystem.path(null, "abc") == "abc" 59 assert fileSystem.path("abc", null) == "abc" 60 assert fileSystem.path("", "") == "" 61 assert fileSystem.path("", "abc") == "abc" 62 assert fileSystem.path("abc", "") == "abc" [all …]
|
| /external/mockftpserver/tags/2.0.1/src/test/groovy/org/mockftpserver/fake/filesystem/ |
| D | WindowsFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 41 // ------------------------------------------------------------------------- 43 // ------------------------------------------------------------------------- 59 assert fileSystem.path(null, null) == "" 60 assert fileSystem.path(null, "abc") == "abc" 61 assert fileSystem.path("abc", null) == "abc" 62 assert fileSystem.path("", "") == "" 63 assert fileSystem.path("", "abc") == "abc" 64 assert fileSystem.path("abc", "") == "abc" [all …]
|
| D | UnixFakeFileSystemTest.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 * @version $Revision$ - $Date$ 54 assert fileSystem.path(null, null) == "" 55 assert fileSystem.path(null, "abc") == "abc" 56 assert fileSystem.path("abc", null) == "abc" 57 assert fileSystem.path("", "") == "" 58 assert fileSystem.path("", "abc") == "abc" 59 assert fileSystem.path("abc", "") == "abc" 60 assert fileSystem.path("abc", "DEF") == "abc/DEF" 61 assert fileSystem.path("abc/", "def") == "abc/def" [all …]
|
| /external/okio/okio/src/commonMain/kotlin/okio/ |
| D | Path.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 import okio.Path.Companion.toPath 21 * A hierarchical address on a file system. A path is an identifier only; a [FileSystem] is required 22 * to access the file that a path refers to, if any. 25 * ---------------------- 28 * (including Linux, Android, macOS, and iOS), the `/` slash character separates path segments. On 29 * Windows, the `\` backslash character separates path segments. The two platforms each have their 30 * own rules for path resolution. This class implements all rules on all platforms; for example you 31 * can model a Linux path in a native Windows application. 34 * --------------------------- [all …]
|
| /external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/ |
| D | AbstractFakeFileSystem.groovy | 8 * http://www.apache.org/licenses/LICENSE-2.0 32 * @version $Revision: $ - $Date: $ 53 * @param entry - the subclass of AbstractFileSystemEntry to add 56 def normalized = normalize(entry.path) 58 throw new FileSystemException("The path [" + normalized + "] already exists") 73 * @param path - the path of the filename to create 76 * @throws AssertionError - if path is null 77 * @throws FileSystemException - if an I/O error occurs 79 public boolean createFile(String path) { 80 assert path != null [all …]
|