Skip to content

Conversation

@karngyan
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings September 17, 2025 19:12
Copy link

Copilot AI left a 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 PascalCase conversion functionality to the sx package, providing the ability to convert strings and string slices to PascalCase format.

  • Implements a generic PascalCase function that supports both string and []string inputs
  • Adds comprehensive test coverage for various input formats and edge cases
  • Introduces case configuration options with normalization support

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sx.go Adds PascalCase conversion function with helper utilities and configuration options
sx_test.go Adds comprehensive test cases for PascalCase functionality with string and slice inputs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

karngyan and others added 2 commits September 18, 2025 00:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

📊 Code Coverage Report

total:					(statements)			96.4%
Coverage by file
github.com/gomantics/sx/sx.go:14:	isSeparator			100.0%
github.com/gomantics/sx/sx.go:19:	isSeparatorCustom		100.0%
github.com/gomantics/sx/sx.go:24:	isLetterCaseChange		100.0%
github.com/gomantics/sx/sx.go:51:	splitByCaseWithCustomSeparators	100.0%
github.com/gomantics/sx/sx.go:124:	defaultSplitConfig		100.0%
github.com/gomantics/sx/sx.go:131:	WithSeparators			100.0%
github.com/gomantics/sx/sx.go:140:	SplitByCase			100.0%
github.com/gomantics/sx/sx.go:150:	normalizeWord			100.0%
github.com/gomantics/sx/sx.go:158:	capitalizeWord			83.3%
github.com/gomantics/sx/sx.go:172:	joinWords			87.5%
github.com/gomantics/sx/sx.go:197:	WithNormalize			100.0%
github.com/gomantics/sx/sx.go:209:	PascalCase			92.9%
total:					(statements)			96.4%

@github-actions
Copy link

📊 Code Coverage Report

total:					(statements)			96.4%
Coverage by file
github.com/gomantics/sx/sx.go:14:	isSeparator			100.0%
github.com/gomantics/sx/sx.go:19:	isSeparatorCustom		100.0%
github.com/gomantics/sx/sx.go:24:	isLetterCaseChange		100.0%
github.com/gomantics/sx/sx.go:51:	splitByCaseWithCustomSeparators	100.0%
github.com/gomantics/sx/sx.go:124:	defaultSplitConfig		100.0%
github.com/gomantics/sx/sx.go:131:	WithSeparators			100.0%
github.com/gomantics/sx/sx.go:140:	SplitByCase			100.0%
github.com/gomantics/sx/sx.go:150:	normalizeWord			100.0%
github.com/gomantics/sx/sx.go:158:	capitalizeWord			83.3%
github.com/gomantics/sx/sx.go:172:	joinWords			87.5%
github.com/gomantics/sx/sx.go:197:	WithNormalize			100.0%
github.com/gomantics/sx/sx.go:209:	PascalCase			92.9%
total:					(statements)			96.4%

@karngyan karngyan merged commit 1fdafe3 into main Sep 17, 2025
2 checks passed
@karngyan karngyan deleted the pascal-case branch September 17, 2025 19:27
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