Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds new functionality to the CSharpCodeBuilder class by introducing two new methods: ScopeLine for combining line appending with scope creation, and Intend for manual indentation control. The PR includes comprehensive test coverage for both features.
Key Changes:
- Added
ScopeLinemethod that combinesAppendLinewithScopefunctionality - Added
Intendmethod for manual single-unit indentation control - Comprehensive test coverage for both new methods including edge cases and integration scenarios
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/NetEvolve.CodeBuilder/CSharpCodeBuilder.Scope.cs | Adds ScopeLine method with XML documentation |
| src/NetEvolve.CodeBuilder/CSharpCodeBuilder.Clear.cs | Adds Intend method with XML documentation |
| tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Scope.cs | Adds comprehensive tests for Scope and ScopeLine methods |
| tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Clear.cs | Adds comprehensive tests for Intend method |
tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Clear.cs
Outdated
Show resolved
Hide resolved
tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Scope.cs
Outdated
Show resolved
Hide resolved
tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Scope.cs
Outdated
Show resolved
Hide resolved
tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Clear.cs
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20 +/- ##
==========================================
+ Coverage 83.26% 83.96% +0.70%
==========================================
Files 13 13
Lines 233 237 +4
Branches 73 74 +1
==========================================
+ Hits 194 199 +5
Misses 23 23
+ Partials 16 15 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ests.Clear.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net>
…ests.Clear.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net>
…ests.Scope.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net>
…ests.Clear.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin Stühmer <me@samtrion.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.