Skip to content

Remove temporary base64 function used for coverage validation#1601

Open
SteveL-MSFT wants to merge 2 commits into
mainfrom
stevel-msft-remove-base64-test
Open

Remove temporary base64 function used for coverage validation#1601
SteveL-MSFT wants to merge 2 commits into
mainfrom
stevel-msft-remove-base64-test

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

Summary

Removes the temporary base64_encode function and its unit tests from dsc/src/main.rs. This code was added solely to validate that the code coverage instrumentation was working correctly (confirmed at 97% in PR #1600).

Changes

  • Removed base64_encode() function
  • Removed 4 unit tests (test_base64_encode_empty, test_base64_encode_basic, test_base64_encode_padding, test_base64_encode_coverage_string)
  • Removed the call site in dsc_main()

The base64_encode function and its tests were added solely to validate
that the code coverage instrumentation was working. Now that coverage
is confirmed working (97% on PR #1600), remove the temporary code.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 27, 2026 17:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the temporary base64_encode helper, its unit tests, and its one call site from dsc/src/main.rs, now that Rust PR coverage instrumentation has been validated (per PR #1600).

Changes:

  • Deleted the temporary base64_encode() implementation from dsc/src/main.rs.
  • Removed the call in dsc_main() that existed only to exercise coverage.
  • Removed the associated unit test module that validated the helper.

Allow empty FileDetails array (e.g. when PR only deletes code) instead
of failing with a mandatory parameter binding error.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

😲 Code Coverage Report

Changed code coverage: 100% (100% coverage)

Metric Value
Changed lines analyzed 0
Lines covered by tests 0
Coverage percentage 100%

Coverage is measured only on changed Rust code in this PR.

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.

2 participants