mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 19:08:55 +00:00
backend: check that StripPassword can be called
This commit is contained in:
parent
13a8b5822f
commit
705ad51bcc
@ -36,6 +36,12 @@ func beTest(ctx context.Context, be restic.Backend, h restic.Handle) (bool, erro
|
|||||||
return err == nil, err
|
return err == nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestStripPasswordCall tests that the StripPassword method of a factory can be called without crashing.
|
||||||
|
// It does not verify whether passwords are removed correctly
|
||||||
|
func (s *Suite[C]) TestStripPasswordCall(t *testing.T) {
|
||||||
|
s.Factory.StripPassword("some random string")
|
||||||
|
}
|
||||||
|
|
||||||
// TestCreateWithConfig tests that creating a backend in a location which already
|
// TestCreateWithConfig tests that creating a backend in a location which already
|
||||||
// has a config file fails.
|
// has a config file fails.
|
||||||
func (s *Suite[C]) TestCreateWithConfig(t *testing.T) {
|
func (s *Suite[C]) TestCreateWithConfig(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user