Coverage report: 89%

Files Functions Classes

coverage.py v7.6.0, created at 2024-07-29 07:50 +0000

File function statements missing excluded coverage
src/somesy/__init__.py (no function) 3 0 0 100%
src/somesy/cff/__init__.py (no function) 2 0 0 100%
src/somesy/cff/writer.py CFF.__init__ 4 0 0 100%
src/somesy/cff/writer.py CFF._init_new_file 3 0 0 100%
src/somesy/cff/writer.py CFF._load 2 0 0 100%
src/somesy/cff/writer.py CFF._validate 5 0 0 100%
src/somesy/cff/writer.py CFF.save 2 0 0 100%
src/somesy/cff/writer.py CFF._sync_authors 1 0 0 100%
src/somesy/cff/writer.py CFF._from_person 2 0 0 100%
src/somesy/cff/writer.py CFF._to_person 4 0 0 100%
src/somesy/cff/writer.py (no function) 18 0 0 100%
src/somesy/cli/__init__.py (no function) 0 0 0 100%
src/somesy/cli/fill.py fill 14 14 0 0%
src/somesy/cli/fill.py (no function) 11 0 0 100%
src/somesy/cli/init.py config 38 38 0 0%
src/somesy/cli/init.py (no function) 12 0 0 100%
src/somesy/cli/sync.py sync 2 2 0 0%
src/somesy/cli/sync.py run_sync 23 23 0 0%
src/somesy/cli/sync.py (no function) 12 0 0 100%
src/somesy/cli/util.py wrap_exceptions 8 8 0 0%
src/somesy/cli/util.py resolved_somesy_input 11 1 0 91%
src/somesy/cli/util.py (no function) 17 0 0 100%
src/somesy/codemeta/__init__.py (no function) 2 0 0 100%
src/somesy/codemeta/writer.py CodeMeta.__init__ 5 2 0 60%
src/somesy/codemeta/writer.py CodeMeta.authors 1 0 0 100%
src/somesy/codemeta/writer.py CodeMeta.authors 2 0 0 100%
src/somesy/codemeta/writer.py CodeMeta.contributors 1 0 0 100%
src/somesy/codemeta/writer.py CodeMeta.contributors 2 0 0 100%
src/somesy/codemeta/writer.py CodeMeta._load 2 0 0 100%
src/somesy/codemeta/writer.py CodeMeta._validate 2 2 0 0%
src/somesy/codemeta/writer.py CodeMeta._init_new_file 3 0 0 100%
src/somesy/codemeta/writer.py CodeMeta.save 9 0 0 100%
src/somesy/codemeta/writer.py CodeMeta._from_person 14 2 0 86%
src/somesy/codemeta/writer.py CodeMeta._to_person 12 1 0 92%
src/somesy/codemeta/writer.py CodeMeta._sync_person_list 1 0 0 100%
src/somesy/codemeta/writer.py CodeMeta.sync 2 0 0 100%
src/somesy/codemeta/writer.py (no function) 29 0 0 100%
src/somesy/commands/__init__.py (no function) 3 0 0 100%
src/somesy/commands/init_config.py init_config 20 20 0 0%
src/somesy/commands/init_config.py (no function) 7 0 0 100%
src/somesy/commands/sync.py _sync_file 6 6 0 0%
src/somesy/commands/sync.py sync 21 21 0 0%
src/somesy/commands/sync.py (no function) 18 0 0 100%
src/somesy/core/__init__.py (no function) 0 0 0 100%
src/somesy/core/core.py discover_input 17 2 0 88%
src/somesy/core/core.py get_input_content 24 19 0 21%
src/somesy/core/core.py (no function) 10 0 0 100%
src/somesy/core/log.py SomesyLogLevel.from_flags 7 7 0 0%
src/somesy/core/log.py SomesyLogLevel.to_logging 8 0 0 100%
src/somesy/core/log.py get_log_level 1 0 0 100%
src/somesy/core/log.py set_log_level 3 0 0 100%
src/somesy/core/log.py init_log 2 0 0 100%
src/somesy/core/log.py _add_verbose_level 7 0 0 100%
src/somesy/core/log.py _add_verbose_level.verbose_print 2 0 0 100%
src/somesy/core/log.py _init_rich_handler 5 0 0 100%
src/somesy/core/log.py (no function) 23 0 0 100%
src/somesy/core/models.py SomesyBaseModel._aliases 1 0 0 100%
src/somesy/core/models.py SomesyBaseModel.make_partial 2 0 0 100%
src/somesy/core/models.py SomesyBaseModel.set_key_order 2 0 0 100%
src/somesy/core/models.py SomesyBaseModel.model_copy 3 0 0 100%
src/somesy/core/models.py SomesyBaseModel._patch_kwargs_defaults 3 0 0 100%
src/somesy/core/models.py SomesyBaseModel._reorder_dict 5 0 0 100%
src/somesy/core/models.py SomesyBaseModel.model_dump 7 0 0 100%
src/somesy/core/models.py SomesyBaseModel.model_dump_json 7 0 0 100%
src/somesy/core/models.py SomesyConfig.at_least_one_target 4 2 0 50%
src/somesy/core/models.py SomesyConfig.log_level 1 1 0 0%
src/somesy/core/models.py SomesyConfig.update_log_level 3 0 0 100%
src/somesy/core/models.py SomesyConfig.get_input 6 0 0 100%
src/somesy/core/models.py Person.author_implies_publication 6 2 0 67%
src/somesy/core/models.py Person.full_name 10 2 0 80%
src/somesy/core/models.py Person.to_name_email_string 1 0 0 100%
src/somesy/core/models.py Person.from_name_email_string 3 0 0 100%
src/somesy/core/models.py Person.same_person 6 0 0 100%
src/somesy/core/models.py ProjectMetadata.ensure_distinct_people 8 0 0 100%
src/somesy/core/models.py ProjectMetadata.at_least_one_author 3 1 0 67%
src/somesy/core/models.py ProjectMetadata.authors 1 0 0 100%
src/somesy/core/models.py ProjectMetadata.publication_authors 3 1 0 67%
src/somesy/core/models.py ProjectMetadata.maintainers 1 0 0 100%
src/somesy/core/models.py ProjectMetadata.contributors 1 0 0 100%
src/somesy/core/models.py SomesyInput.is_somesy_file 1 1 0 0%
src/somesy/core/models.py SomesyInput.is_somesy_file_path 1 1 0 0%
src/somesy/core/models.py SomesyInput.from_input_file 4 0 0 100%
src/somesy/core/models.py (no function) 121 0 0 100%
src/somesy/core/types.py MyEnum.__str__ 1 1 0 0%
src/somesy/core/types.py (no function) 751 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.__init__ 11 1 0 91%
src/somesy/core/writer.py ProjectMetadataWriter._init_new_file 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter._load 0 0 7 100%
src/somesy/core/writer.py ProjectMetadataWriter._validate 0 0 6 100%
src/somesy/core/writer.py ProjectMetadataWriter.save 0 0 6 100%
src/somesy/core/writer.py ProjectMetadataWriter._get_property 18 1 0 94%
src/somesy/core/writer.py ProjectMetadataWriter._set_property 12 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter._merge_person_metadata 28 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter._sync_person_list 2 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter._sync_authors 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.sync 12 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter._from_person 0 0 1 100%
src/somesy/core/writer.py ProjectMetadataWriter._to_person 0 0 1 100%
src/somesy/core/writer.py ProjectMetadataWriter._parse_people 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter._get_key 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.name 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.name 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.version 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.version 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.description 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.description 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.authors 5 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.authors 2 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.maintainers 5 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.maintainers 2 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.contributors 1 1 0 0%
src/somesy/core/writer.py ProjectMetadataWriter.contributors 2 2 0 0%
src/somesy/core/writer.py ProjectMetadataWriter.keywords 1 1 0 0%
src/somesy/core/writer.py ProjectMetadataWriter.keywords 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.license 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.license 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.homepage 1 1 0 0%
src/somesy/core/writer.py ProjectMetadataWriter.homepage 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.repository 1 1 0 0%
src/somesy/core/writer.py ProjectMetadataWriter.repository 1 0 0 100%
src/somesy/core/writer.py ProjectMetadataWriter.documentation 1 1 0 0%
src/somesy/core/writer.py ProjectMetadataWriter.documentation 1 0 0 100%
src/somesy/core/writer.py (no function) 67 0 12 100%
src/somesy/fortran/__init__.py (no function) 2 0 0 100%
src/somesy/fortran/models.py FortranConfig.validate_version 5 2 0 60%
src/somesy/fortran/models.py (no function) 20 0 0 100%
src/somesy/fortran/writer.py Fortran.__init__ 2 0 0 100%
src/somesy/fortran/writer.py Fortran.authors 7 2 0 71%
src/somesy/fortran/writer.py Fortran.authors 2 0 0 100%
src/somesy/fortran/writer.py Fortran.maintainers 4 4 0 0%
src/somesy/fortran/writer.py Fortran.maintainers 2 0 0 100%
src/somesy/fortran/writer.py Fortran._load 2 0 0 100%
src/somesy/fortran/writer.py Fortran._validate 3 0 0 100%
src/somesy/fortran/writer.py Fortran.save 3 0 0 100%
src/somesy/fortran/writer.py Fortran._from_person 1 0 0 100%
src/somesy/fortran/writer.py Fortran._to_person 5 3 0 40%
src/somesy/fortran/writer.py Fortran.sync 12 0 0 100%
src/somesy/fortran/writer.py (no function) 27 0 0 100%
src/somesy/json_wrapper.py json_dump_wrapper 3 0 0 100%
src/somesy/json_wrapper.py (no function) 5 0 0 100%
src/somesy/julia/__init__.py (no function) 2 0 0 100%
src/somesy/julia/models.py JuliaConfig.validate_version 5 2 0 60%
src/somesy/julia/models.py JuliaConfig.validate_email_format 11 2 0 82%
src/somesy/julia/models.py JuliaConfig.validate_uuid 5 2 0 60%
src/somesy/julia/models.py (no function) 23 0 0 100%
src/somesy/julia/writer.py Julia.__init__ 1 0 0 100%
src/somesy/julia/writer.py Julia._load 2 0 0 100%
src/somesy/julia/writer.py Julia._validate 3 0 0 100%
src/somesy/julia/writer.py Julia.save 3 0 0 100%
src/somesy/julia/writer.py Julia._from_person 1 0 0 100%
src/somesy/julia/writer.py Julia._to_person 5 0 0 100%
src/somesy/julia/writer.py Julia.sync 3 0 0 100%
src/somesy/julia/writer.py (no function) 19 0 0 100%
src/somesy/main.py version 3 0 0 100%
src/somesy/main.py common 6 6 0 0%
src/somesy/main.py (no function) 15 0 0 100%
src/somesy/mkdocs/__init__.py (no function) 2 0 0 100%
src/somesy/mkdocs/models.py (no function) 12 0 0 100%
src/somesy/mkdocs/writer.py MkDocs.__init__ 4 0 0 100%
src/somesy/mkdocs/writer.py MkDocs._load 2 0 0 100%
src/somesy/mkdocs/writer.py MkDocs._validate 3 0 0 100%
src/somesy/mkdocs/writer.py MkDocs.save 2 0 0 100%
src/somesy/mkdocs/writer.py MkDocs.authors 4 0 0 100%
src/somesy/mkdocs/writer.py MkDocs.authors 2 0 0 100%
src/somesy/mkdocs/writer.py MkDocs._from_person 1 0 0 100%
src/somesy/mkdocs/writer.py MkDocs._to_person 5 0 0 100%
src/somesy/mkdocs/writer.py MkDocs.sync 8 0 0 100%
src/somesy/mkdocs/writer.py (no function) 23 0 0 100%
src/somesy/package_json/__init__.py (no function) 2 0 0 100%
src/somesy/package_json/models.py PackageJsonConfig.convert_author 9 1 0 89%
src/somesy/package_json/models.py PackageJsonConfig.validate_name 3 1 0 67%
src/somesy/package_json/models.py PackageJsonConfig.validate_version 3 0 0 100%
src/somesy/package_json/models.py PackageJsonConfig.validate_author 1 0 0 100%
src/somesy/package_json/models.py PackageJsonConfig.validate_people 11 11 0 0%
src/somesy/package_json/models.py (no function) 46 0 0 100%
src/somesy/package_json/writer.py PackageJSON.__init__ 2 0 0 100%
src/somesy/package_json/writer.py PackageJSON.authors 5 0 0 100%
src/somesy/package_json/writer.py PackageJSON.authors 2 0 0 100%
src/somesy/package_json/writer.py PackageJSON.maintainers 11 0 0 100%
src/somesy/package_json/writer.py PackageJSON.maintainers 2 0 0 100%
src/somesy/package_json/writer.py PackageJSON.contributors 11 3 0 73%
src/somesy/package_json/writer.py PackageJSON.contributors 2 0 0 100%
src/somesy/package_json/writer.py PackageJSON._load 2 0 0 100%
src/somesy/package_json/writer.py PackageJSON._validate 3 0 0 100%
src/somesy/package_json/writer.py PackageJSON.save 4 0 0 100%
src/somesy/package_json/writer.py PackageJSON._from_person 6 0 0 100%
src/somesy/package_json/writer.py PackageJSON._to_person 12 0 0 100%
src/somesy/package_json/writer.py PackageJSON.sync 2 0 0 100%
src/somesy/package_json/writer.py PackageJSON.repository 5 5 0 0%
src/somesy/package_json/writer.py PackageJSON.repository 1 0 0 100%
src/somesy/package_json/writer.py (no function) 36 0 0 100%
src/somesy/pom_xml/__init__.py (no function) 3 0 0 100%
src/somesy/pom_xml/writer.py POM.__init__ 2 0 0 100%
src/somesy/pom_xml/writer.py POM._init_new_file 3 0 0 100%
src/somesy/pom_xml/writer.py POM._load 2 0 0 100%
src/somesy/pom_xml/writer.py POM._validate 1 0 0 100%
src/somesy/pom_xml/writer.py POM.save 1 0 0 100%
src/somesy/pom_xml/writer.py POM._get_property 6 0 0 100%
src/somesy/pom_xml/writer.py POM._from_person 10 0 0 100%
src/somesy/pom_xml/writer.py POM._to_person 11 0 0 100%
src/somesy/pom_xml/writer.py POM.keywords 1 1 0 0%
src/somesy/pom_xml/writer.py POM.keywords 1 0 0 100%
src/somesy/pom_xml/writer.py POM.authors 2 0 0 100%
src/somesy/pom_xml/writer.py POM.authors 2 0 0 100%
src/somesy/pom_xml/writer.py POM.contributors 4 0 0 100%
src/somesy/pom_xml/writer.py POM.contributors 2 0 0 100%
src/somesy/pom_xml/writer.py POM.maintainers 1 0 0 100%
src/somesy/pom_xml/writer.py POM.maintainers 1 0 0 100%
src/somesy/pom_xml/writer.py POM.license 2 0 0 100%
src/somesy/pom_xml/writer.py POM.license 1 0 0 100%
src/somesy/pom_xml/writer.py POM.repository 4 4 0 0%
src/somesy/pom_xml/writer.py POM.repository 1 0 0 100%
src/somesy/pom_xml/writer.py POM.documentation 4 4 0 0%
src/somesy/pom_xml/writer.py POM.documentation 1 0 0 100%
src/somesy/pom_xml/writer.py POM.sync 2 0 0 100%
src/somesy/pom_xml/writer.py (no function) 49 0 0 100%
src/somesy/pom_xml/xmlproxy.py load_xml 3 0 0 100%
src/somesy/pom_xml/xmlproxy.py indent 12 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy._wrap 1 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy._dump 1 1 0 0%
src/somesy/pom_xml/xmlproxy.py XMLProxy._qualified_key 3 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy._shortened_key 3 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__init__ 2 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.parse 2 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.write 6 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__repr__ 0 0 2 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__len__ 1 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__iter__ 1 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.namespace 1 1 0 0%
src/somesy/pom_xml/xmlproxy.py XMLProxy.is_comment 1 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.tag 3 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.tag 3 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.to_jsonlike 19 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy._from_jsonlike_primitive 14 3 0 79%
src/somesy/pom_xml/xmlproxy.py XMLProxy.from_jsonlike 16 1 0 94%
src/somesy/pom_xml/xmlproxy.py XMLProxy.get 15 2 0 87%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__getitem__ 4 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__contains__ 1 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__delitem__ 9 1 0 89%
src/somesy/pom_xml/xmlproxy.py XMLProxy._clear 4 0 0 100%
src/somesy/pom_xml/xmlproxy.py XMLProxy.__setitem__ 27 3 0 89%
src/somesy/pom_xml/xmlproxy.py (no function) 38 0 1 100%
src/somesy/pyproject/__init__.py (no function) 2 0 0 100%
src/somesy/pyproject/models.py PoetryConfig.validate_version 5 2 0 60%
src/somesy/pyproject/models.py PoetryConfig.validate_email_format 11 2 0 82%
src/somesy/pyproject/models.py PoetryConfig.validate_readme 5 5 0 0%
src/somesy/pyproject/models.py License.validate_xor 3 1 0 67%
src/somesy/pyproject/models.py SetuptoolsConfig.validate_version 5 2 0 60%
src/somesy/pyproject/models.py SetuptoolsConfig.validate_readme 8 8 0 0%
src/somesy/pyproject/models.py SetuptoolsConfig.validate_email_format 5 1 0 80%
src/somesy/pyproject/models.py (no function) 78 0 0 100%
src/somesy/pyproject/writer.py PyprojectCommon.__init__ 3 0 0 100%
src/somesy/pyproject/writer.py PyprojectCommon._load 2 0 0 100%
src/somesy/pyproject/writer.py PyprojectCommon._validate 3 0 0 100%
src/somesy/pyproject/writer.py PyprojectCommon.save 3 0 0 100%
src/somesy/pyproject/writer.py PyprojectCommon._get_property 3 0 0 100%
src/somesy/pyproject/writer.py PyprojectCommon._set_property 13 2 0 85%
src/somesy/pyproject/writer.py Poetry.__init__ 1 0 0 100%
src/somesy/pyproject/writer.py Poetry._from_person 1 0 0 100%
src/somesy/pyproject/writer.py Poetry._to_person 5 0 0 100%
src/somesy/pyproject/writer.py SetupTools.__init__ 3 0 0 100%
src/somesy/pyproject/writer.py SetupTools._from_person 1 0 0 100%
src/somesy/pyproject/writer.py SetupTools._to_person 2 0 0 100%
src/somesy/pyproject/writer.py SetupTools.sync 3 1 0 67%
src/somesy/pyproject/writer.py Pyproject.__init__ 14 3 0 79%
src/somesy/pyproject/writer.py (no function) 34 0 0 100%
src/somesy/rust/__init__.py (no function) 2 0 0 100%
src/somesy/rust/models.py RustConfig.license_or_file 3 0 0 100%
src/somesy/rust/models.py RustConfig.validate_version 5 2 0 60%
src/somesy/rust/models.py RustConfig.validate_readme 5 5 0 0%
src/somesy/rust/models.py RustConfig.check_keywords_field 7 1 0 86%
src/somesy/rust/models.py check_keyword 6 1 0 83%
src/somesy/rust/models.py (no function) 36 0 0 100%
src/somesy/rust/writer.py Rust.__init__ 3 0 0 100%
src/somesy/rust/writer.py Rust._load 2 0 0 100%
src/somesy/rust/writer.py Rust._validate 3 0 0 100%
src/somesy/rust/writer.py Rust.save 3 0 0 100%
src/somesy/rust/writer.py Rust._get_property 5 0 0 100%
src/somesy/rust/writer.py Rust._set_property 13 3 0 77%
src/somesy/rust/writer.py Rust._from_person 1 0 0 100%
src/somesy/rust/writer.py Rust._to_person 4 0 0 100%
src/somesy/rust/writer.py Rust._parse_people 1 0 0 100%
src/somesy/rust/writer.py Rust.keywords 1 1 0 0%
src/somesy/rust/writer.py Rust.keywords 10 3 0 70%
src/somesy/rust/writer.py Rust.sync 3 0 0 100%
src/somesy/rust/writer.py (no function) 27 0 0 100%
Total   2739 297 36 89%

No items found using the specified filter.