-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Extended the API #20
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
No description provided.