Skip to content

chore: refactor migration code and tests#3222

Open
miparnisari wants to merge 2 commits into
mainfrom
refactor-migrations
Open

chore: refactor migration code and tests#3222
miparnisari wants to merge 2 commits into
mainfrom
refactor-migrations

chore: refactor and export migrations code and test

916899e
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch failed Jul 16, 2026 in 1s

72.99% of diff hit (target 76.50%)

View this Pull Request on Codecov

72.99% of diff hit (target 76.50%)

Annotations

Check warning on line 28 in internal/datastore/crdb/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/crdb/enginebuilder.go#L27-L28

Added lines #L27 - L28 were not covered by tests

Check warning on line 33 in internal/datastore/crdb/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/crdb/enginebuilder.go#L32-L33

Added lines #L32 - L33 were not covered by tests

Check warning on line 38 in internal/datastore/crdb/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/crdb/enginebuilder.go#L37-L38

Added lines #L37 - L38 were not covered by tests

Check warning on line 19 in internal/datastore/memdb/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/memdb/enginebuilder.go#L18-L19

Added lines #L18 - L19 were not covered by tests

Check warning on line 116 in internal/datastore/memdb/memdb.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/memdb/memdb.go#L115-L116

Added lines #L115 - L116 were not covered by tests

Check warning on line 34 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L33-L34

Added lines #L33 - L34 were not covered by tests

Check warning on line 43 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L42-L43

Added lines #L42 - L43 were not covered by tests

Check warning on line 47 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L46-L47

Added lines #L46 - L47 were not covered by tests

Check warning on line 59 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L51-L59

Added lines #L51 - L59 were not covered by tests

Check warning on line 69 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L68-L69

Added lines #L68 - L69 were not covered by tests

Check warning on line 74 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L73-L74

Added lines #L73 - L74 were not covered by tests

Check warning on line 105 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L92-L105

Added lines #L92 - L105 were not covered by tests

Check warning on line 126 in internal/datastore/mysql/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/mysql/enginebuilder.go#L125-L126

Added lines #L125 - L126 were not covered by tests

Check warning on line 35 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L34-L35

Added lines #L34 - L35 were not covered by tests

Check warning on line 39 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L38-L39

Added lines #L38 - L39 were not covered by tests

Check warning on line 51 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L43-L51

Added lines #L43 - L51 were not covered by tests

Check warning on line 61 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L60-L61

Added lines #L60 - L61 were not covered by tests

Check warning on line 66 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L65-L66

Added lines #L65 - L66 were not covered by tests

Check warning on line 97 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L79-L97

Added lines #L79 - L97 were not covered by tests

Check warning on line 136 in internal/datastore/postgres/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/postgres/enginebuilder.go#L135-L136

Added lines #L135 - L136 were not covered by tests

Check warning on line 26 in internal/datastore/spanner/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/spanner/enginebuilder.go#L25-L26

Added lines #L25 - L26 were not covered by tests

Check warning on line 36 in internal/datastore/spanner/enginebuilder.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/datastore/spanner/enginebuilder.go#L35-L36

Added lines #L35 - L36 were not covered by tests

Check warning on line 37 in pkg/cmd/migrate.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/cmd/migrate.go#L36-L37

Added lines #L36 - L37 were not covered by tests

Check warning on line 99 in pkg/cmd/migrate.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/cmd/migrate.go#L98-L99

Added lines #L98 - L99 were not covered by tests

Check warning on line 85 in pkg/datastore/migration/migration.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/datastore/migration/migration.go#L84-L85

Added lines #L84 - L85 were not covered by tests