snapshot of https://github.com/golang-migrate/migrate.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
CI / test (1.26.x) (push) Failing after 5s
CI / Check coverage (push) Has been skipped
CI / lint (push) Failing after 41s
CI / test (1.25.x) (push) Failing after 54s
CI / Release a new version (push) Has been skipped

This commit is contained in:
upstream-mirror
2026-09-15 21:52:57 +05:00
commit 9f3bffc2d3
405 changed files with 27657 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package bitbucket
import (
"bytes"
"os"
"testing"
st "github.com/golang-migrate/migrate/v4/source/testing"
)
var BitbucketTestSecret = "" // username:password
func init() {
secrets, err := os.ReadFile(".bitbucket_test_secrets")
if err == nil {
BitbucketTestSecret = string(bytes.TrimSpace(secrets)[:])
}
}
func Test(t *testing.T) {
if len(BitbucketTestSecret) == 0 {
t.Skip("test requires .bitbucket_test_secrets")
}
b := &Bitbucket{}
d, err := b.Open("bitbucket://" + BitbucketTestSecret + "@abhishekbipp/test-migration/migrations/test#master")
if err != nil {
t.Fatal(err)
}
st.Test(t, d)
}