Merged
Conversation
Agent-Logs-Url: https://github.com/Tyrrrz/PowerKit/sessions/3d7e91f1-7f2c-4929-bcc5-2114454ddecf Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Tyrrrz
April 17, 2026 06:53
View session
Tyrrrz
approved these changes
Apr 17, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## prime #40 +/- ##
==========================================
+ Coverage 94.47% 94.50% +0.03%
==========================================
Files 76 78 +2
Lines 1574 1583 +9
Branches 131 131
==========================================
+ Hits 1487 1496 +9
Misses 65 65
Partials 22 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds char extension helpers to PowerKit (ported from CliFx) to simplify generating strings from single characters and repeated characters.
Changes:
- Introduces
CharExtensionswithRepeat(int count)andAsString(). - Adds unit tests covering both new extension methods.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| PowerKit/Extensions/CharExtensions.cs | Adds char extensions for repeating a character into a string and converting a char to a single-character string. |
| PowerKit.Tests/CharExtensionsTests.cs | Adds tests validating expected outputs for Repeat (including 0) and AsString. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced May 1, 2026
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.
Ports the
charextension methods from CliFx's StringExtensions into PowerKit.Changes
PowerKit/Extensions/CharExtensions.cs— new file with twoextension(char c)members:Repeat(int count)→new string(c, count)AsString()→c.Repeat(1)PowerKit.Tests/CharExtensionsTests.cs— unit tests for both methodsUsage