fault.defects

Check the implementation of filesystem routes.

sys
import

functools
import

os
import

module
import

time
import

d_setup
function

d_setup(x, path)

_
function

_(x, path)

test_constants
function

test_constants(test)

Check for files.root presence and sanity.

test_Path
function

test_Path(test)

test_Path_filename
function

test_Path_filename(test)

test_Path_repr
function

test_Path_repr(test)

test_Path_string_cache
function

test_Path_string_cache(test)

test_Path_from_partitioned_string
function

test_Path_from_partitioned_string(test)

test_Path_bytespath
function

test_Path_bytespath(test)

test_Path_temporary
function

test_Path_temporary(test)

test_Path_list
function

test_Path_list(test)

test_Path_iterfiles
function

test_Path_iterfiles(test)

test_Path_index
function

test_Path_index(test)

test_Path_snapshot
function

test_Path_snapshot(test)

test_Path_real
function

test_Path_real(test)

test_Path_replace
function

test_Path_replace(test)

test_Path_init
function

test_Path_init(test)

Test fault.system.files.Path.fs_init checking that the parent directories are properly created regardless of the selected type.

test_Path_mkdir
function

test_Path_mkdir(test)

Test fault.system.files.Path.fs_mkdir checking that the parent directories are properly created regardless of the selected type.

test_Path_type_void
function

test_Path_type_void(test)

test_Path_extension
function

test_Path_extension(test)

test_Path_size
function

test_Path_size(test)

test_Path_get_last_modified
function

test_Path_get_last_modified(test)

System check.

test_Path_set_last_modified
function

test_Path_set_last_modified(test)

System check.

test_Path_get_text_content
function

test_Path_get_text_content(test)

Validate fault.system.files.Path.get_text_content.

test_Path_set_text_content
function

test_Path_set_text_content(test)

Validate fault.system.files.Path.set_text_content.

test_Path_since
function

test_Path_since(test)

fault.system.files.Path.fs_since

test_Path_construct
function

test_Path_construct(test)

Test the various classmethods that construct file instances.

test_Path_relative_resolution
function

test_Path_relative_resolution(test)

test_Path_basename_manipulations
function

test_Path_basename_manipulations(test)

test_Path_join
function

test_Path_join(test)

test_Path_properties
function

test_Path_properties(test)

test_Path_open
function

test_Path_open(test)

test_Path_open_exception
function

test_Path_open_exception(test)

test_Path_void
function

test_Path_void(test)

test_Path_recursive_since
function

test_Path_recursive_since(test)

fault.system.files.Path.fs_since with recursive directories.

test_Path_io
function

test_Path_io(test)

test_Path_python_protocol
function

test_Path_python_protocol(test)

test_Path_snapshot_sanity
function

test_Path_snapshot_sanity(test)

test_Path_snapshot_limit
function

test_Path_snapshot_limit(test)

test_Path_snapshot_depth
function

test_Path_snapshot_depth(test)

test_Path_fs_alloc
function

test_Path_fs_alloc(test)

test_Path_fs_require_void
function

test_Path_fs_require_void(test)

Validate that missing file cases are handled.

test_Path_fs_require_type
function

test_Path_fs_require_type(test)

Validate that fs_require checks the type.

test_Path_fs_require_permissions
function

test_Path_fs_require_permissions(test)

Validate that fs_require checks the properties.

test_Path_fs_require_directory_control
function

test_Path_fs_require_directory_control(test)

Validate that fs_require allows for optional directory.

test_Path_fs_require_accessibility
function

test_Path_fs_require_accessibility(test)

Validate that the implied accessibility constraint is communicated when paths traverse through regular files or directories without the necessary permissions.

test_root_instance
function

test_root_instance(test)

test_Path_fs_path_string
function

test_Path_fs_path_string(test)

Validate path normalization by making sure partitions are properly eliminated.