Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for SingleInstanceHelper and fix formatting from simplifying PR #11863 #12261

Merged

Conversation

paul1956
Copy link
Contributor

@paul1956 paul1956 commented Oct 2, 2024

Partially Fixes #12230

Proposed changes

Customer Impact

  • Developer code cleanup and add tests

Regression?

  • No

Risk

  • None
Microsoft Reviewers: Open in CodeFlow

@paul1956 paul1956 requested a review from a team as a code owner October 2, 2024 22:48
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

Attention: Patch coverage is 97.97980% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.46965%. Comparing base (109410d) to head (02c975c).
Report is 11 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12261         +/-   ##
===================================================
+ Coverage   75.46801%   75.46965%   +0.00163%     
===================================================
  Files           3106        3107          +1     
  Lines         634445      634520         +75     
  Branches       46887       46897         +10     
===================================================
+ Hits          478803      478870         +67     
- Misses        152217      152223          +6     
- Partials        3425        3427          +2     
Flag Coverage Δ
Debug 75.46965% <97.97980%> (+0.00163%) ⬆️
integration 17.97541% <0.00000%> (-0.01015%) ⬇️
production 48.88445% <100.00000%> (+0.00167%) ⬆️
test 97.02598% <96.29630%> (-0.00011%) ⬇️
unit 45.89345% <100.00000%> (-0.00480%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Tanya-Solyanik and others added 10 commits October 4, 2024 14:28
* Moved to SDK RC2 to get the same build errors in VS and CLI build and be able to fix them.

Before this change the IntPreview version of VS was correctly complaining about a redundant cast(IDE0004) in ToolStrip.cs
    g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>)
        [
            new(verticalBeamStart, _lastInsertionMarkRect.Y), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1),
            new(verticalBeamStart + 1, _lastInsertionMarkRect.Y), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1)
        ]);

But the CLI build required this cast.

After the upgrade to RC2, IDE0300 - Collection initialization can be simplified - became more robust and required code fixes that use collection expressions applied to the solution.
…net#12141)

* Add XML Comments related to FileSystemProxy which includes SpecialDirectoriesProxy

* Fix some types

* Add some language keywords

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/FileSystemProxy.vb

Co-authored-by: Loni Tra <[email protected]>

* PR feedback

* Update all XML comments

* Fix Typo in FileSystemProxy that caused build to fail.

* Update XML Coments

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb

Co-authored-by: Tanya Solyanik <[email protected]>

* Update src/Microsoft.VisualBasic.Forms/src/Microsoft/VisualBasic/MyServices/SpecialDirectoriesProxy.vb

Co-authored-by: Tanya Solyanik <[email protected]>

* Redo all the comments in SpecialDirectoriesProxy

* Add cref per PR feedback and changed type to Namespace

* PR Feedback to add see cref's

---------

Co-authored-by: Loni Tra <[email protected]>
Co-authored-by: Tanya Solyanik <[email protected]>
[main] Update dependencies from dotnet/runtime
Fix IDE0002 in LogTests.cs
[main] Update dependencies from dotnet/arcade
[main] Update dependencies from dotnet/runtime
…tnet#11863  (dotnet#12264)

* Improve code coverage for FileLogTraceListener

* Update src/Microsoft.VisualBasic/tests/UnitTests/Microsoft/VisualBasic/Logging/FileLogTraceListenerTests.cs

Thanks I had no idea about boolData

Co-authored-by: Loni Tra <[email protected]>

---------

Co-authored-by: Loni Tra <[email protected]>
* Switch default feed to full wildcard

* Add other wildcards back
@paul1956 paul1956 changed the title Fix Formatting in SingleInstanceHelper and add unit tests from simplifying PR #11863 Add unit tests for SingleInstanceHelper and fix formatting from simplifying PR #11863 Oct 5, 2024
Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

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

Overall LGTM

@lonitra lonitra added the 📭 waiting-author-feedback The team requires more information from the author label Oct 8, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label Oct 9, 2024
@lonitra lonitra added the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Oct 10, 2024
@lonitra lonitra merged commit 3760721 into dotnet:main Oct 11, 2024
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview1 milestone Oct 11, 2024
@dotnet-policy-service dotnet-policy-service bot removed the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Oct 11, 2024
@paul1956 paul1956 deleted the FIx-Formatting-in-SingleInstanceHelper-From-#11863 branch October 11, 2024 23:02
@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Tracking] Current VB work (Refactoring and adding tests)
4 participants