Skip to content

chore: [#669] upgrade DB packages and add test case#1045

Merged
almas-x merged 1 commit intomasterfrom
almas/chore
May 23, 2025
Merged

chore: [#669] upgrade DB packages and add test case#1045
almas-x merged 1 commit intomasterfrom
almas/chore

Conversation

@almas-x
Copy link
Contributor

@almas-x almas-x commented May 23, 2025

📑 Description

Closes goravel/goravel#669

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings May 23, 2025 05:16
@almas-x almas-x requested a review from a team as a code owner May 23, 2025 05:16
Copy link
Contributor

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 upgrades the goravel/postgres test dependency and adds a new schema test for PostgreSQL's GENERATED AS identity columns.

  • Bumps goravel/postgres to a newer commit in tests/go.mod
  • Introduces TestGeneratedAs_Postgres to validate default and custom identity column behaviors

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/schema_test.go Add TestGeneratedAs_Postgres to exercise identity column creation and querying
tests/go.mod Update github.com/goravel/postgres version
Comments suppressed due to low confidence (1)

tests/schema_test.go:1823

  • [nitpick] Go test names typically avoid underscores; consider renaming to TestGeneratedAsPostgres for consistency with Go conventions.
func (s *SchemaSuite) TestGeneratedAs_Postgres() {


func (s *SchemaSuite) TestGeneratedAs_Postgres() {
if s.driverToTestQuery[postgres.Name] == nil {
s.T().Skip("Skip test")
Copy link

Copilot AI May 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Provide a more descriptive skip message, e.g., Skip GENERATED AS identity tests for non-Postgres drivers to clarify why the test is skipped.

Suggested change
s.T().Skip("Skip test")
s.T().Skip("Skip GENERATED AS identity tests for non-Postgres drivers")

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented May 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.48%. Comparing base (88c15e8) to head (fd8a823).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1045   +/-   ##
=======================================
  Coverage   70.48%   70.48%           
=======================================
  Files         176      176           
  Lines       12339    12339           
=======================================
  Hits         8697     8697           
  Misses       3261     3261           
  Partials      381      381           

☔ 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.

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.

Great 👍

@almas-x almas-x merged commit 3196306 into master May 23, 2025
14 checks passed
@almas-x almas-x deleted the almas/chore branch May 23, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migration support GENERATED

3 participants