fuse: cleanup test

This commit is contained in:
Michael Eischer committed 2022-08-05 23:46:46 +02:00
1 parent 1751afae26
commit f678f7cb04
3 files changed
+10 -10

No files matched your search

-5
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 {
+5
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
}