Coverage report: 92%

Files Functions Classes

coverage.py v7.8.0, created at 2025-04-08 12:49 +0200

File function statements missing excluded branches partial coverage
src/git_dag/cli.py get_cla_parser 28 0 0 0 0 100%
src/git_dag/cli.py get_user_defined_cla 4 0 0 0 0 100%
src/git_dag/cli.py main 13 0 0 4 0 100%
src/git_dag/cli.py (no function) 34 0 2 0 0 100%
src/git_dag/constants.py (no function) 14 0 0 0 0 100%
src/git_dag/dag.py MixinProtocol._is_object_to_include 0 0 1 0 0 100%
src/git_dag/dag.py MixinProtocol._is_tag_to_include 0 0 1 0 0 100%
src/git_dag/dag.py MixinProtocol._add_notes_label_node 0 0 1 0 0 100%
src/git_dag/dag.py CommitHandlerMixin._add_notes_label_node 2 0 0 0 0 100%
src/git_dag/dag.py CommitHandlerMixin._add_commit 21 0 0 14 1 97%
src/git_dag/dag.py CommitHandlerMixin._add_commit.form_tooltip 2 0 0 0 0 100%
src/git_dag/dag.py TreeBlobHandlerMixin._add_tree 15 1 0 10 3 84%
src/git_dag/dag.py TreeBlobHandlerMixin._add_blob 2 0 0 0 0 100%
src/git_dag/dag.py TagHandlerMixin._is_tag_to_include 3 0 0 2 0 100%
src/git_dag/dag.py TagHandlerMixin._add_annotated_tags 9 0 0 6 1 93%
src/git_dag/dag.py TagHandlerMixin._add_annotated_tags.form_tooltip 1 0 0 0 0 100%
src/git_dag/dag.py TagHandlerMixin._add_lightweight_tags 6 0 0 6 1 92%
src/git_dag/dag.py StashHandlerMixin._add_stashes 6 0 0 6 1 92%
src/git_dag/dag.py BranchHandlerMixin._add_local_branches 6 0 0 4 0 100%
src/git_dag/dag.py BranchHandlerMixin._add_remote_branches 6 4 0 4 1 30%
src/git_dag/dag.py HeadHandlerMixin._add_local_head 12 2 0 6 2 78%
src/git_dag/dag.py HeadHandlerMixin._add_remote_heads 3 2 0 2 1 40%
src/git_dag/dag.py HeadHandlerMixin._add_prs_heads 8 7 0 8 1 12%
src/git_dag/dag.py HeadHandlerMixin._add_annotations 18 1 0 10 2 89%
src/git_dag/dag.py DagVisualizer.__post_init__ 8 2 0 2 1 70%
src/git_dag/dag.py DagVisualizer._embed_svg_in_html 6 0 0 0 0 100%
src/git_dag/dag.py DagVisualizer.show 8 0 2 4 0 100%
src/git_dag/dag.py DagVisualizer._is_object_to_include 3 0 0 2 0 100%
src/git_dag/dag.py DagVisualizer._build_dag 32 0 0 28 2 97%
src/git_dag/dag.py (no function) 50 0 2 0 0 100%
src/git_dag/exceptions.py CalledProcessCustomError.__init__ 1 0 0 0 0 100%
src/git_dag/exceptions.py CalledProcessCustomError.__str__ 1 0 0 0 0 100%
src/git_dag/exceptions.py (no function) 4 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandBase.__init__ 2 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandBase._run 4 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandBase.run_general 8 0 0 6 0 100%
src/git_dag/git_commands.py GitCommandMutate.__init__ 5 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandMutate.init 1 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandMutate.env 14 0 2 2 1 94%
src/git_dag/git_commands.py GitCommandMutate.add 4 0 0 2 0 100%
src/git_dag/git_commands.py GitCommandMutate.cm 11 0 0 10 0 100%
src/git_dag/git_commands.py GitCommandMutate.cm.update_author_info 6 4 0 4 1 30%
src/git_dag/git_commands.py GitCommandMutate.br 8 0 0 6 0 100%
src/git_dag/git_commands.py GitCommandMutate.mg 4 1 0 2 1 67%
src/git_dag/git_commands.py GitCommandMutate.mg_multiple 6 6 0 2 0 0%
src/git_dag/git_commands.py GitCommandMutate.rebase 1 1 0 0 0 0%
src/git_dag/git_commands.py GitCommandMutate.stash 8 0 0 6 1 93%
src/git_dag/git_commands.py GitCommandMutate.tag 7 0 0 4 0 100%
src/git_dag/git_commands.py GitCommandMutate.note 1 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandMutate.config 1 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandMutate.push 1 1 0 0 0 0%
src/git_dag/git_commands.py GitCommandMutate.pull 1 1 0 0 0 0%
src/git_dag/git_commands.py GitCommandMutate.fetch 1 1 0 0 0 0%
src/git_dag/git_commands.py GitCommandMutate.clone_from_local 2 0 0 0 0 100%
src/git_dag/git_commands.py GitCommandMutate.init_remote_head 1 1 0 0 0 0%
src/git_dag/git_commands.py GitCommand.get_objects_sha_kind 6 0 0 2 0 100%
src/git_dag/git_commands.py GitCommand.read_object_file 1 0 0 0 0 100%
src/git_dag/git_commands.py GitCommand.get_remotes 4 0 0 2 0 100%
src/git_dag/git_commands.py GitCommand.get_fsck_unreachable_commits 2 2 0 0 0 0%
src/git_dag/git_commands.py GitCommand.get_remote_heads_sym_ref 9 2 0 2 0 82%
src/git_dag/git_commands.py GitCommand.get_prs_heads 11 11 0 4 0 0%
src/git_dag/git_commands.py GitCommand.get_branches 14 0 0 8 0 100%
src/git_dag/git_commands.py GitCommand.get_local_head_commit_sha 1 0 0 0 0 100%
src/git_dag/git_commands.py GitCommand.rev_parse_descriptors 8 4 0 2 1 50%
src/git_dag/git_commands.py GitCommand.rev_list_range 8 6 0 2 1 30%
src/git_dag/git_commands.py GitCommand.get_local_head_branch 2 0 0 0 0 100%
src/git_dag/git_commands.py GitCommand.local_branch_is_tracking 5 0 0 0 0 100%
src/git_dag/git_commands.py GitCommand.get_stash_info 10 5 0 4 0 50%
src/git_dag/git_commands.py GitCommand.rev_list 1 0 0 0 0 100%
src/git_dag/git_commands.py GitCommand.ls_tree 1 1 0 0 0 0%
src/git_dag/git_commands.py GitCommand.get_blobs_and_trees_names 12 0 0 10 0 100%
src/git_dag/git_commands.py GitCommand.get_tags_info_parsed 9 0 0 4 0 100%
src/git_dag/git_commands.py GitCommand.get_notes_dag_root 6 0 0 0 0 100%
src/git_dag/git_commands.py TestGitRepository.create 12 0 0 8 0 100%
src/git_dag/git_commands.py TestGitRepository.tar 2 0 0 0 0 100%
src/git_dag/git_commands.py TestGitRepository.untar 2 2 0 0 0 0%
src/git_dag/git_commands.py TestGitRepository.repository_empty 5 0 0 2 0 100%
src/git_dag/git_commands.py TestGitRepository.repository_default 43 0 0 0 0 100%
src/git_dag/git_commands.py TestGitRepository.repository_default_with_notes 4 0 0 0 0 100%
src/git_dag/git_commands.py create_test_repo_and_reference_dot_file 12 0 0 0 0 100%
src/git_dag/git_commands.py (no function) 73 0 2 0 0 100%
src/git_dag/git_objects.py GitObject.kind 0 0 0 0 0 100%
src/git_dag/git_objects.py GitObject.is_ready 1 0 0 0 0 100%
src/git_dag/git_objects.py GitObject.is_ready 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTag.anchor 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTag.anchor 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTag.tagger 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTag.tagger_email 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTag.tagger_date 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTag.message 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.tree 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.tree 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.parents 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.parents 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.author 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.author_email 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.author_date 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.committer 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.committer_email 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.committer_date 1 0 0 0 0 100%
src/git_dag/git_objects.py GitCommit.message 1 0 0 0 0 100%
src/git_dag/git_objects.py GitTree.children 3 0 0 2 0 100%
src/git_dag/git_objects.py GitTree.children 3 0 0 2 0 100%
src/git_dag/git_objects.py GitHead.is_defined 1 0 0 0 0 100%
src/git_dag/git_objects.py GitHead.is_detached 1 0 0 0 0 100%
src/git_dag/git_objects.py GitHead.__repr__ 6 6 0 4 0 0%
src/git_dag/git_objects.py (no function) 112 0 0 0 0 100%
src/git_dag/git_repository.py time_it 3 0 0 0 0 100%
src/git_dag/git_repository.py time_it.wrap 5 0 0 0 0 100%
src/git_dag/git_repository.py RegexParser.parse_object_descriptor 4 0 1 0 0 100%
src/git_dag/git_repository.py RegexParser.parse_tree_info 11 0 1 6 1 94%
src/git_dag/git_repository.py RegexParser._collect_commit_info 14 0 2 4 0 100%
src/git_dag/git_repository.py RegexParser._collect_commit_info.strip_creator_label 1 0 0 0 0 100%
src/git_dag/git_repository.py RegexParser._collect_commit_info.extract_message 1 0 0 0 0 100%
src/git_dag/git_repository.py RegexParser.parse_commit_info 10 0 0 4 0 100%
src/git_dag/git_repository.py RegexParser.parse_tag_info 15 0 1 2 0 100%
src/git_dag/git_repository.py RegexParser.parse_stash_info 10 0 1 4 0 100%
src/git_dag/git_repository.py GitInspector.__init__ 11 0 0 0 0 100%
src/git_dag/git_repository.py GitInspector._get_commits_sha 3 0 0 0 0 100%
src/git_dag/git_repository.py GitInspector._get_commits_info 10 1 1 6 1 88%
src/git_dag/git_repository.py GitInspector._get_trees_info 4 0 0 0 0 100%
src/git_dag/git_repository.py GitInspector._get_objects_info_parsed 19 2 2 8 1 89%
src/git_dag/git_repository.py GitInspector.get_raw_objects 3 0 0 0 0 100%
src/git_dag/git_repository.py GitInspector.get_raw_objects.git_entity_before_validator 1 0 0 0 0 100%
src/git_dag/git_repository.py GitRepository.__init__ 4 0 0 2 0 100%
src/git_dag/git_repository.py GitRepository.post_process_inspector_data 11 0 0 0 0 100%
src/git_dag/git_repository.py GitRepository._form_branches 7 0 0 4 0 100%
src/git_dag/git_repository.py GitRepository._form_local_head 12 2 0 4 2 75%
src/git_dag/git_repository.py GitRepository._form_remote_heads 1 0 0 0 0 100%
src/git_dag/git_repository.py GitRepository._form_annotated_tags 6 0 0 4 0 100%
src/git_dag/git_repository.py GitRepository._form_lightweight_tags 4 0 0 2 0 100%
src/git_dag/git_repository.py GitRepository._form_objects 26 0 0 16 1 98%
src/git_dag/git_repository.py GitRepository._form_stashes 1 0 0 0 0 100%
src/git_dag/git_repository.py GitRepository.get_all_reachable_objects 3 0 0 0 0 100%
src/git_dag/git_repository.py GitRepository.get_objects_reachable_from 6 0 0 2 1 88%
src/git_dag/git_repository.py GitRepository.filter_objects 1 0 0 0 0 100%
src/git_dag/git_repository.py GitRepository.show 7 1 0 4 1 82%
src/git_dag/git_repository.py GitRepository.__repr__ 11 0 0 6 1 94%
src/git_dag/git_repository.py (no function) 71 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.__init__ 7 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.edge 0 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.node 0 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.build 0 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.render 0 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.source 0 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py DagBase.get 0 0 0 0 0 100%
src/git_dag/interfaces/dag_base.py (no function) 17 0 0 0 0 100%
src/git_dag/interfaces/graphviz.py handle_none 1 0 0 0 0 100%
src/git_dag/interfaces/graphviz.py DagGraphviz.edge 3 0 0 2 0 100%
src/git_dag/interfaces/graphviz.py DagGraphviz.node 9 1 0 8 2 82%
src/git_dag/interfaces/graphviz.py DagGraphviz.build 8 0 0 4 0 100%
src/git_dag/interfaces/graphviz.py DagGraphviz.build.form_clulster_of_standalone_trees_and_blobs 15 0 0 8 0 100%
src/git_dag/interfaces/graphviz.py DagGraphviz.render 1 0 0 0 0 100%
src/git_dag/interfaces/graphviz.py DagGraphviz.source 1 0 0 0 0 100%
src/git_dag/interfaces/graphviz.py DagGraphviz.get 1 0 0 0 0 100%
src/git_dag/interfaces/graphviz.py (no function) 13 0 0 0 0 100%
src/git_dag/parameters.py CustomYamlDumper.write_line_break 3 0 0 2 0 100%
src/git_dag/parameters.py ParamsBase.set_ignore_config_file 1 0 0 0 0 100%
src/git_dag/parameters.py ParamsBase.section_in_config 0 0 0 0 0 100%
src/git_dag/parameters.py ParamsBase.set_defaults_values 10 0 0 8 0 100%
src/git_dag/parameters.py ParamsLinks.section_in_config 1 1 0 0 0 0%
src/git_dag/parameters.py ParamsStandaloneCluster.section_in_config 1 0 0 0 0 100%
src/git_dag/parameters.py ParamsDagGlobal.section_in_config 1 0 0 0 0 100%
src/git_dag/parameters.py ParamsDagNode.section_in_config 1 0 0 0 0 100%
src/git_dag/parameters.py ParamsDagEdge.section_in_config 1 0 0 0 0 100%
src/git_dag/parameters.py ParamsDagNodeColors.section_in_config 1 0 0 0 0 100%
src/git_dag/parameters.py ParamsMisc.section_in_config 1 1 0 0 0 0%
src/git_dag/parameters.py ParamsPublic.section_in_config 1 0 0 0 0 100%
src/git_dag/parameters.py context_ignore_config_file.__enter__ 2 0 0 0 0 100%
src/git_dag/parameters.py context_ignore_config_file.__exit__ 1 0 0 0 0 100%
src/git_dag/parameters.py Params.set_ignore_config_file 1 0 0 0 0 100%
src/git_dag/parameters.py Params.create_config 5 0 0 2 0 100%
src/git_dag/parameters.py (no function) 129 0 0 0 0 100%
src/git_dag/utils.py escape_decode 1 0 0 0 0 100%
src/git_dag/utils.py transform_ascii_control_chars 2 0 0 0 0 100%
src/git_dag/utils.py transform_ascii_control_chars.ascii_to_caret_notation 2 0 0 0 0 100%
src/git_dag/utils.py creator_timestamp_format 8 0 0 2 0 100%
src/git_dag/utils.py creator_timestamp_format.formatter 3 0 0 0 0 100%
src/git_dag/utils.py increase_date 2 2 0 0 0 0%
src/git_dag/utils.py (no function) 7 0 0 0 0 100%
Total   1388 85 22 334 34 92%

No items found using the specified filter.