Skip to content

source: implement missing tests for Migrations - #1415

Open
Brah-Timo wants to merge 1 commit into
golang-migrate:masterfrom
Brah-Timo:source-migration-tests
Open

source: implement missing tests for Migrations#1415
Brah-Timo wants to merge 1 commit into
golang-migrate:masterfrom
Brah-Timo:source-migration-tests

Conversation

@Brah-Timo

Copy link
Copy Markdown

Summary

This PR implements the previously empty test cases in source/migration_test.go.

Added tests

  • TestNewMigrations
  • TestAppend
  • TestBuildIndex
  • TestFirst
  • TestPrev
  • TestUp
  • TestDown

These tests verify the existing behavior of the Migrations type without changing any production code.

Testing

go test ./source

@Brah-Timo
Brah-Timo force-pushed the source-migration-tests branch from 55fd6b8 to b52acd2 Compare July 25, 2026 21:40
@coveralls

coveralls commented Jul 25, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 55.046% (+0.6%) from 54.412% — Brah-Timo:source-migration-tests into golang-migrate:master

@Brah-Timo

Copy link
Copy Markdown
Author

This PR implements the previously empty test cases in source/migration_test.go.
Added tests

TestNewMigrations
TestAppend
TestBuildIndex
TestFirst
TestPrev
TestUp
TestDown

These tests verify the existing behavior of the Migrations type without changing any production code.

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