mirror of
https://github.com/restic/restic.git
synced 2025-12-04 02:41:52 +00:00
fuse: cleanup test
This commit is contained in:
@@ -146,11 +146,6 @@ func (sn Snapshot) ID() *ID {
|
||||
return sn.id
|
||||
}
|
||||
|
||||
// SetID sets the snapshot's ID.
|
||||
func (sn *Snapshot) SetID(id ID) {
|
||||
sn.id = &id
|
||||
}
|
||||
|
||||
func (sn *Snapshot) fillUserInfo() error {
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
|
||||
@@ -207,3 +207,8 @@ func TestParseID(s string) ID {
|
||||
func TestParseHandle(s string, t BlobType) BlobHandle {
|
||||
return BlobHandle{ID: TestParseID(s), Type: t}
|
||||
}
|
||||
|
||||
// TestSetSnapshotID sets the snapshot's ID.
|
||||
func TestSetSnapshotID(t testing.TB, sn *Snapshot, id ID) {
|
||||
sn.id = &id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user