Tree implementation tests for bzr. These test the conformance of all the tree variations to the expected API. Specific tests for individual variations are in other places such as: - tests/per_workingtree/*.py. - tests/test_tree.py - tests/test_revision.py - tests/test_workingtree.py
Module | test_annotate_iter | Test that all Tree's implement .annotate_iter() |
Module | test_export | Undocumented |
Module | test_get_file_mtime | Test that all Tree's implement get_file_mtime |
Module | test_get_file_with_stat | Test that all WorkingTree's implement get_file_with_stat. |
Module | test_get_root_id | Tests for Tree.get_root_id() |
Module | test_get_symlink_target | Test that all Tree's implement get_symlink_target |
Module | test_inv | Tests for interface conformance of inventories of trees. |
Module | test_is_executable | Undocumented |
Module | test_iter_search_rules | Test that all Tree's implement iter_search_rules. |
Module | test_list_files | Test that all trees support Tree.list_files() |
Module | test_locking | Test that all trees support Tree.lock_read() |
Module | test_path_content_summary | Test that all Trees implement path_content_summary. |
Module | test_revision_tree | Tests for Tree.revision_tree. |
Module | test_test_trees | Tests for the test trees used by the per_tree tests. |
Module | test_tree | Undocumented |
Module | test_walkdirs | Tests for the generic Tree.walkdirs interface. |
From the __init__.py module:
Class | TestCaseWithTree | No class docstring; 15/17 methods documented |
Class | TestTreeImplementationSupport | Undocumented |
Function | create_tree_scenario | Create a scenario for the specified converter |
Function | load_tests | Undocumented |
Function | make_scenarios | Generate test suites for each Tree implementation in bzrlib. |
Function | preview_tree_post | Undocumented |
Function | preview_tree_pre | Undocumented |
Function | return_parameter | A trivial thunk to return its input. |
Function | revision_tree_from_workingtree | Create a revision tree from a working tree. |
Function | _dirstate_tree_from_workingtree | Undocumented |
Currently this covers all working tree formats, and RevisionTree and DirStateRevisionTree by committing a working tree to create the revision tree.
Parameters | converter | A function that converts a workingtree into the desired format. |
workingtree_format | The particular workingtree format to convert from. | |
Returns | a (name, options) tuple, where options is a dict of values to be used as members of the TestCase. |