MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestLatestVersion

Function TestLatestVersion

backend/migrator/migrator_test.go:15–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestLatestVersion(t *testing.T) {
16 files, err := getSortedVersionedFiles()
17 require.NoError(t, err)
18 require.Equal(t, semver.MustParse("3.20.3"), *files[len(files)-1].version)
19 require.Equal(t, "migration/3.20/0003##migrate_color_string_to_message.sql", files[len(files)-1].path)
20}
21
22func TestVersionUnique(t *testing.T) {
23 files, err := getSortedVersionedFiles()

Callers

nothing calls this directly

Calls 2

getSortedVersionedFilesFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected