Skip to content

feat: python base test coverage#21

Merged
CodeYogiCo merged 2 commits into
masterfrom
python-based-test-coverage
May 24, 2026
Merged

feat: python base test coverage#21
CodeYogiCo merged 2 commits into
masterfrom
python-based-test-coverage

Conversation

@CodeYogiCo
Copy link
Copy Markdown
Contributor

❤ THANKS FOR YOUR PULL REQUEST

Proposed change

Describe your change and communicate why we should accept the pull request. Links to issues are helpful too, if applicable.

Types of changes

What types of changes is this pull request introducing to this plugin? Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

You can fill this out after creating your PR. Put an x in the boxes that apply

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@github-actions
Copy link
Copy Markdown

🛡️ Patch Coverage Report

Scope: changed lines only — the code this PR adds or edits, not whole files or the repo. It answers one thing — did your tests run the code you just touched?

Diff coverage: 100% 🟢 — 63 of 63 changed instructions covered

Metric Value
🟢 Covered instructions 63 (100%) changed code your tests executed
🔴 Missed instructions 0 (0%) changed code your tests never ran
📈 Tracked changed lines 63 (24%) lines the coverage tool could measure
⚪ Untracked changed lines 201 (76%) comments, blanks, declarations

Lines = the source lines you changed. Instructions = the executable units the coverage tool counts inside those lines — one line can hold several (e.g. JaCoCo bytecode), so the two counts differ.

Coverage by file

File Diff coverage Covered / Missed
internal/plugin/coverage/pythoncov/report.go 🟢 100% 61 / 0
internal/plugin/runner.go 🟢 100% 2 / 0

2 changed file(s) with no measurable lines (config, docs, generated, or test-only) omitted.

🤖 Generated by pull-request-code-coverage — coverage for changed lines only.

@github-actions
Copy link
Copy Markdown

🛡️ Patch Coverage Report

Scope: changed lines only — the code this PR adds or edits, not whole files or the repo. It answers one thing — did your tests run the code you just touched?

Diff coverage: 96% 🟢 — 162 of 169 changed instructions covered

Metric Value
🟢 Covered instructions 162 (96%) changed code your tests executed
🔴 Missed instructions 7 (4%) changed code your tests never ran
📈 Tracked changed lines 169 (29%) lines the coverage tool could measure
⚪ Untracked changed lines 404 (71%) comments, blanks, declarations

Lines = the source lines you changed. Instructions = the executable units the coverage tool counts inside those lines — one line can hold several (e.g. JaCoCo bytecode), so the two counts differ.

Coverage by file

File Diff coverage Covered / Missed
internal/plugin/coverage/lcov/report.go 🟢 93% 97 / 7
internal/plugin/coverage/pythoncov/report.go 🟢 100% 61 / 0
internal/plugin/runner.go 🟢 100% 4 / 0

3 changed file(s) with no measurable lines (config, docs, generated, or test-only) omitted.

🔍 Uncovered lines (7)
--- internal/plugin/coverage/lcov/report.go:77
				continue
--- internal/plugin/coverage/lcov/report.go:96
		return nil, errors.Wrap(scanErr, "Failed reading lcov data")
--- internal/plugin/coverage/lcov/report.go:97
	}
--- internal/plugin/coverage/lcov/report.go:106
		return 0, 0, errors.Errorf("Invalid DA record %q", line)
--- internal/plugin/coverage/lcov/report.go:107
	}
--- internal/plugin/coverage/lcov/report.go:116
		return 0, 0, errors.Wrapf(hitsErr, "Invalid hit count in DA record %q", line)
--- internal/plugin/coverage/lcov/report.go:117
	}

🤖 Generated by pull-request-code-coverage — coverage for changed lines only.

@CodeYogiCo CodeYogiCo merged commit 1bc382b into master May 24, 2026
2 of 3 checks passed
@CodeYogiCo CodeYogiCo deleted the python-based-test-coverage branch May 24, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant