Skip to content

Conversation

kuafuRace
Copy link
Contributor

πŸ“‘ Description

Add SetLocation and SetLocale methods and unit test cases

βœ… Checks

  • Added test cases for my code

@kuafuRace kuafuRace requested a review from a team as a code owner April 11, 2025 05:43
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Please upload report for BASE (v1.15.x@32ea7c9). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             v1.15.x    #1002   +/-   ##
==========================================
  Coverage           ?   70.08%           
==========================================
  Files              ?      234           
  Lines              ?    19676           
  Branches           ?        0           
==========================================
  Hits               ?    13789           
  Misses             ?     5225           
  Partials           ?      662           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

hwbrzzl
hwbrzzl previously approved these changes Apr 11, 2025
Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

c := Parse("2025-04-11 00:00:00")

assert.Equal(t, "zh-CN", c.Locale())
assert.Equal(t, "η™½ηΎŠεΊ§", c.Constellation())
Copy link
Contributor

Choose a reason for hiding this comment

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

NB

assert.Equal(t, 28800, c.ZoneOffset())
assert.Equal(t, "2025-04-11 00:00:00 +0800 CST", c.ToString())
}

func TestTimezone(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
func TestTimezone(t *testing.T) {
func TestSetTimezone(t *testing.T) {

Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

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

LGTM

@hwbrzzl
Copy link
Contributor

hwbrzzl commented Apr 11, 2025

And FYI, the new functions can not be added to v1.15.x if they are optional, otherwise, we need to create the same PR for master.

@kuafuRace
Copy link
Contributor Author

And FYI, the new functions can not be added to v1.15.x if they are optional, otherwise, we need to create the same PR for master.

Is the master branch consistent with v1.16 branch? I will update the master branch when upgrading carbon2.6.x

@hwbrzzl
Copy link
Contributor

hwbrzzl commented Apr 11, 2025

I will create v1.16 based on master when releasing v1.16.

@hwbrzzl hwbrzzl merged commit a198fd5 into goravel:v1.15.x Apr 11, 2025
10 of 11 checks passed
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