Coverage report: 83%

Files Functions Classes

coverage.py v7.14.3, created at 2026-06-27 17:58 +0000

File function   statements missing excluded   coverage
src/software_citation_sync/__init__.py (no function)   0 0 0   100%
src/software_citation_sync/cff.py load_citation   7 2 0   71%
src/software_citation_sync/cff.py render_citation   7 0 0   100%
src/software_citation_sync/cff.py render_citation_bibtex   1 0 0   100%
src/software_citation_sync/cff.py create_citation   11 0 0   100%
src/software_citation_sync/cff.py write_citation   6 1 0   83%
src/software_citation_sync/cff.py apply_citation_metadata   3 0 0   100%
src/software_citation_sync/cff.py validate_with_cffconvert   6 2 0   67%
src/software_citation_sync/cff.py _bibtex_authors   4 2 0   50%
src/software_citation_sync/cff.py _bibtex_author   6 2 0   67%
src/software_citation_sync/cff.py (no function)   16 0 0   100%
src/software_citation_sync/config.py CheckResult.ok   1 0 0   100%
src/software_citation_sync/config.py (no function)   19 0 0   100%
src/software_citation_sync/discovery.py discover_version   25 11 0   56%
src/software_citation_sync/discovery.py discover_project_metadata   7 2 0   71%
src/software_citation_sync/discovery.py _discover_package_json_metadata   10 10 0   0%
src/software_citation_sync/discovery.py _discover_pyproject_metadata   10 4 0   60%
src/software_citation_sync/discovery.py _package_json_authors   7 7 0   0%
src/software_citation_sync/discovery.py _package_json_author_name   11 11 0   0%
src/software_citation_sync/discovery.py _pyproject_authors   5 2 0   60%
src/software_citation_sync/discovery.py _pyproject_author_name   9 4 0   56%
src/software_citation_sync/discovery.py (no function)   15 0 0   100%
src/software_citation_sync/github_action.py main   15 2 0   87%
src/software_citation_sync/github_action.py _discover_required_version   5 2 0   60%
src/software_citation_sync/github_action.py _discover_required_project_metadata   5 2 0   60%
src/software_citation_sync/github_action.py _current_date   1 1 0   0%
src/software_citation_sync/github_action.py _current_repository_url   1 0 0   100%
src/software_citation_sync/github_action.py _set_output   2 0 0   100%
src/software_citation_sync/github_action.py (no function)   20 1 0   95%
src/software_citation_sync/readme.py bibtex_reference   1 0 0   100%
src/software_citation_sync/readme.py expected_readme_block   1 0 0   100%
src/software_citation_sync/readme.py readme_block_matches   2 0 0   100%
src/software_citation_sync/readme.py write_readme_block   10 2 0   80%
src/software_citation_sync/readme.py _current_block   8 0 0   100%
src/software_citation_sync/readme.py (no function)   11 0 0   100%
src/software_citation_sync/software_heritage.py archive_origin   16 4 0   75%
src/software_citation_sync/software_heritage.py _request_save   3 0 0   100%
src/software_citation_sync/software_heritage.py _poll_save_request   7 1 0   86%
src/software_citation_sync/software_heritage.py _save_url   1 0 0   100%
src/software_citation_sync/software_heritage.py _swh_url   2 0 0   100%
src/software_citation_sync/software_heritage.py _required_text   1 0 0   100%
src/software_citation_sync/software_heritage.py (no function)   15 0 0   100%
src/software_citation_sync/sync.py check   5 0 0   100%
src/software_citation_sync/sync.py write_citation_metadata   8 2 0   75%
src/software_citation_sync/sync.py render_readme_bibtex   2 0 0   100%
src/software_citation_sync/sync.py write_readme   2 0 0   100%
src/software_citation_sync/sync.py (no function)   8 0 0   100%
tests/__init__.py (no function)   0 0 0   100%
tests/test_discovery.py test_discover_version_requires_package_json_version   4 0 0   100%
tests/test_discovery.py test_discover_project_metadata_from_pyproject   2 0 0   100%
tests/test_discovery.py (no function)   7 0 0   100%
tests/test_github_action.py mock_software_heritage_archive   2 0 0   100%
tests/test_github_action.py test_action_updates_files_archives_and_sets_changed_output   17 0 0   100%
tests/test_github_action.py test_action_creates_missing_citation   16 0 0   100%
tests/test_github_action.py (no function)   14 0 0   100%
tests/test_software_heritage.py test_archive_origin_returns_swh_url   7 0 0   100%
tests/test_software_heritage.py test_archive_origin_requires_poll_url   6 0 0   100%
tests/test_software_heritage.py (no function)   6 0 0   100%
tests/test_sync.py test_write_updates_citation_and_readme   11 0 0   100%
tests/test_sync.py test_write_creates_missing_citation   4 0 0   100%
tests/test_sync.py test_check_reports_readme_block_error   6 0 0   100%
tests/test_sync.py test_write_readme_rejects_incomplete_markers   5 0 0   100%
tests/test_sync.py (no function)   13 0 0   100%
Total     458 77 0   83%

No items found using the specified filter.