(t *testing.T)
| 138 | } |
| 139 | |
| 140 | func TestGetBackupByName_Exists(t *testing.T) { |
| 141 | folder := testtools.CreateMockStorageFolder() |
| 142 | backup, err := internal.GetBackupByName("base_123", utility.BaseBackupPath, folder) |
| 143 | assert.NoError(t, err) |
| 144 | assert.Equal(t, folder.GetSubFolder(utility.BaseBackupPath), backup.Folder) |
| 145 | assert.Equal(t, "base_123", backup.Name) |
| 146 | } |
| 147 | |
| 148 | func TestGetBackupByName_Exists_WithGomock(t *testing.T) { |
| 149 | ctrl := gomock.NewController(t) |
nothing calls this directly
no test coverage detected