Skip to content

Commit 877f3fe

Browse files
committed
Add extensive tests for new Dir methods with platform-specific behavior
Introduce modular, comprehensive test cases for `Dir` methods, covering various platform-specific paths. New tests ensure accurate handling of environmental variables, relative paths, platform defaults, and fallback strategies: - Add test suites for `bin_home`, `cache_home`, `config_home`, `data_home`, `desktop`, `documents`, `downloads`, `fonts`, `home`, `music`, `pictures`, `preferences`, `publicshare`, `runtime`, `state_home`, and `templates`. - Validate correct behavior for both Windows and Unix environments. - Utilize `temp_env` for scoped environment variable handling. - Ensure fallbacks to platform-specific directory standards when variables are unset or paths are invalid. Refactor existing tests to match the added modular structure.
1 parent 564fb64 commit 877f3fe

File tree

1 file changed

+703
-168
lines changed

1 file changed

+703
-168
lines changed

0 commit comments

Comments
 (0)