dulwich.tests.test_diff_tree module¶
Tests for file and tree diff utilities.
-
class
dulwich.tests.test_diff_tree.
DiffTestCase
(methodName='runTest')¶ Bases:
dulwich.tests.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
commit_tree
(entries)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
-
class
dulwich.tests.test_diff_tree.
RenameDetectionTest
(methodName='runTest')¶ Bases:
dulwich.tests.test_diff_tree.DiffTestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
assertBlockCountEqual
(expected, got)¶
-
assertSimilar
(expected_score, blob1, blob2)¶
-
detect_renames
(tree1, tree2, want_unchanged=False, **kwargs)¶
-
test_content_rename_gitlink
()¶
-
test_content_rename_many_to_many
()¶
-
test_content_rename_many_to_one
()¶
-
test_content_rename_max_files
()¶
-
test_content_rename_one_to_many
()¶
-
test_content_rename_one_to_one
()¶
-
test_content_rename_one_to_one_ordering
()¶
-
test_content_rename_swap
()¶
-
test_content_rename_with_more_deletions
()¶
-
test_count_blocks
()¶
-
test_count_blocks_chunks
()¶
-
test_count_blocks_chunks_extension
()¶
-
test_count_blocks_extension
()¶
-
test_count_blocks_long_lines
()¶
-
test_count_blocks_long_lines_extension
()¶
-
test_count_blocks_no_newline
()¶
-
test_count_blocks_no_newline_extension
()¶
-
test_exact_copy_change_mode
()¶
-
test_exact_copy_modify
()¶
-
test_exact_rename_and_different_type
()¶
-
test_exact_rename_many_to_many
()¶
-
test_exact_rename_many_to_one
()¶
-
test_exact_rename_one_to_many
()¶
-
test_exact_rename_one_to_one
()¶
-
test_exact_rename_split_different_type
()¶
-
test_exact_rename_swap
()¶
-
test_find_copies_harder_content
()¶
-
test_find_copies_harder_exact
()¶
-
test_find_copies_harder_with_rewrites
()¶
-
test_no_renames
()¶
-
test_rename_threshold
()¶
-
test_reuse_detector
()¶
-
test_rewrite_threshold
()¶
-
test_similarity_score
()¶
-
test_similarity_score_cache
()¶
-
test_tree_entry_sort
()¶
-
test_want_unchanged
()¶
-
-
class
dulwich.tests.test_diff_tree.
TreeChangesTest
(methodName='runTest')¶ Bases:
dulwich.tests.test_diff_tree.DiffTestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
assertChangesEqual
(expected, tree1, tree2, **kwargs)¶
-
assertChangesForMergeEqual
(expected, parent_trees, merge_tree, **kwargs)¶
-
assertMergeFails
(merge_entries, name, mode, sha)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_is_tree
()¶
-
test_is_tree_extension
()¶
-
test_merge_entries
()¶
-
test_merge_entries_extension
()¶
-
test_tree_changes_add_delete
()¶
-
test_tree_changes_change_type
()¶
-
test_tree_changes_change_type_same
()¶
-
test_tree_changes_complex
()¶
-
test_tree_changes_empty
()¶
-
test_tree_changes_for_merge_add_add_same_conflict
()¶
-
test_tree_changes_for_merge_add_content_rename_conflict
()¶
-
test_tree_changes_for_merge_add_exact_rename_conflict
()¶
-
test_tree_changes_for_merge_add_modify_conflict
()¶
-
test_tree_changes_for_merge_add_no_conflict
()¶
-
test_tree_changes_for_merge_delete_delete_conflict
()¶
-
test_tree_changes_for_merge_delete_no_conflict
()¶
-
test_tree_changes_for_merge_modify_modify_conflict
()¶
-
test_tree_changes_for_merge_modify_no_conflict
()¶
-
test_tree_changes_for_merge_modify_rename_conflict
()¶
-
test_tree_changes_for_merge_octopus_delete
()¶
-
test_tree_changes_for_merge_octopus_modify_conflict
()¶
-
test_tree_changes_for_merge_octopus_no_conflict
()¶
-
test_tree_changes_modify_contents
()¶
-
test_tree_changes_modify_mode
()¶
-
test_tree_changes_name_order
()¶
-
test_tree_changes_no_changes
()¶
-
test_tree_changes_prune
()¶
-
test_tree_changes_rename_detector
()¶
-
test_tree_changes_to_tree
()¶
-