(t *testing.T)
| 758 | } |
| 759 | |
| 760 | func (s *formatSpecificTestSuite) TestChangePassword(t *testing.T) { |
| 761 | ctx, env := repotesting.NewEnvironment(t, s.formatVersion) |
| 762 | if s.formatVersion == format.FormatVersion1 { |
| 763 | require.Error(t, env.RepositoryWriter.FormatManager().ChangePassword(ctx, "new-password")) |
| 764 | } else { |
| 765 | require.NoError(t, env.RepositoryWriter.FormatManager().ChangePassword(ctx, "new-password")) |
| 766 | |
| 767 | r, err := repo.Open(ctx, env.RepositoryWriter.ConfigFilename(), "new-password", nil) |
| 768 | require.NoError(t, err) |
| 769 | r.Close(ctx) |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | func TestMetrics_CompressibleData(t *testing.T) { |
| 774 | ctx, env := repotesting.NewEnvironment(t, repotesting.FormatNotImportant) |
nothing calls this directly
no test coverage detected