( path_manipulation )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| 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) | - | - | - | - | - | - | - |