fuse: cleanup test

This commit is contained in:
Michael Eischer
2022-07-24 11:22:57 +02:00
parent 1751afae26
commit f678f7cb04
3 changed files with 10 additions and 10 deletions

View File

@@ -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 {

View File

@@ -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
}