( path_manipulation )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( build_path ) | os.path.join(a, b) | not built-in | - | - | - | - | - | - | - |
| ( normalize_path ) | os.path.normpath() | - | - | - | - | - | - | - | - |
| ( get_basename ) | os.path.basename() | basename($path) | - | - | basename | Name | - | - | - |
| ( get_dirname ) | os.path.dirname() | dirname($path) | - | - | dirname | - | - | - | - |
| ( relative_path_to_absolute_path ) | os.path.abspath() | - | - | - | realpath (GNU) | - | - | - | - |
| ( get_stem ) | os.path.splitext(path)[0] | pathinfo($path, PATHINFO_FILENAME) | - | - | ${fname%%.*} | Name | - | - | - |
| ( get_extension ) | os.path.splitext(path)[1] | pathinfo($path, PATHINFO_EXTENSION) | - | - | - | Extension | - | - | - |
| ( get_stem_for_specific_extension ) | removesuffix(ext) | not built-in | - | - | ${fname%.ext} | - | - | - | - |
| ( resolve_symbolic_link ) | os.path.realpath() | realpath($path) | - | - | - | - | - | - | - |