Skip to content

Commit 49ef09a

Browse files
committed
fix lint errors
Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
1 parent 59d445a commit 49ef09a

6 files changed

Lines changed: 0 additions & 49 deletions

File tree

internal/controller/device/scsi/controller_lcow_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ func newMockGuestOps() *mockGuestOps {
3636
return &mockGuestOps{}
3737
}
3838

39-
func newMockGuestOpsWithMountErr(err error) *mockGuestOps {
40-
return &mockGuestOps{mountErr: err}
41-
}
42-
43-
func newMockGuestOpsWithUnmountErr(err error) *mockGuestOps {
44-
return &mockGuestOps{unmountErr: err}
45-
}
46-
4739
// --- LCOW-specific tests ---
4840

4941
func TestMapToGuest_MountError(t *testing.T) {

internal/controller/device/scsi/controller_wcow_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ func newMockGuestOps() *mockGuestOps {
3535
return &mockGuestOps{}
3636
}
3737

38-
func newMockGuestOpsWithMountErr(err error) *mockGuestOps {
39-
return &mockGuestOps{mountErr: err}
40-
}
41-
42-
func newMockGuestOpsWithUnmountErr(err error) *mockGuestOps {
43-
return &mockGuestOps{unmountErr: err}
44-
}
45-
4638
// --- WCOW-specific tests ---
4739

4840
func TestMapToGuest_MountError(t *testing.T) {

internal/controller/device/scsi/disk/disk_lcow_test.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,14 @@ func newDefaultEjector() GuestSCSIEjector {
4343
return &mockGuestSCSIEjector{}
4444
}
4545

46-
func newFailingEjector(err error) GuestSCSIEjector {
47-
return &mockGuestSCSIEjector{err: err}
48-
}
49-
5046
func newDefaultMounter() mount.GuestSCSIMounter {
5147
return &mockGuestSCSIMounter{}
5248
}
5349

54-
func newFailingMounter(err error) mount.GuestSCSIMounter {
55-
return &mockGuestSCSIMounter{err: err}
56-
}
57-
5850
func newDefaultUnmounter() mount.GuestSCSIUnmounter {
5951
return &mockGuestSCSIUnmounter{}
6052
}
6153

62-
func newFailingUnmounter(err error) mount.GuestSCSIUnmounter {
63-
return &mockGuestSCSIUnmounter{err: err}
64-
}
65-
6654
// --- LCOW-specific tests ---
6755

6856
func TestDetachFromVM_FromAttached_WithGuest(t *testing.T) {

internal/controller/device/scsi/disk/disk_wcow_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,14 @@ func newDefaultEjector() GuestSCSIEjector {
4646
return &mockGuestSCSIEjector{}
4747
}
4848

49-
func newFailingEjector(_ error) GuestSCSIEjector {
50-
// WCOW ejector is a no-op; errors are not applicable.
51-
return &mockGuestSCSIEjector{}
52-
}
53-
5449
func newDefaultMounter() mount.GuestSCSIMounter {
5550
return &mockGuestSCSIMounter{}
5651
}
5752

58-
func newFailingMounter(err error) mount.GuestSCSIMounter {
59-
return &mockGuestSCSIMounter{err: err}
60-
}
61-
6253
func newDefaultUnmounter() mount.GuestSCSIUnmounter {
6354
return &mockGuestSCSIUnmounter{}
6455
}
6556

66-
func newFailingUnmounter(err error) mount.GuestSCSIUnmounter {
67-
return &mockGuestSCSIUnmounter{err: err}
68-
}
69-
7057
// --- WCOW-specific tests ---
7158

7259
func TestMountPartitionToGuest_WCOW_Success(t *testing.T) {

internal/controller/device/scsi/mount/mount_lcow_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ func newFailingMounter(err error) GuestSCSIMounter {
4242
return &mockMounter{err: err}
4343
}
4444

45-
func newFailingUnmounter(err error) GuestSCSIUnmounter {
46-
return &mockUnmounter{err: err}
47-
}
48-
4945
func mountedMount(t *testing.T) *Mount {
5046
t.Helper()
5147
m := NewReserved(0, 0, defaultConfig())

internal/controller/device/scsi/mount/mount_wcow_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ func newFailingMounter(err error) GuestSCSIMounter {
5050
return &mockMounter{err: err}
5151
}
5252

53-
func newFailingUnmounter(err error) GuestSCSIUnmounter {
54-
return &mockUnmounter{err: err}
55-
}
56-
5753
func mountedMount(t *testing.T) *Mount {
5854
t.Helper()
5955
m := NewReserved(0, 0, defaultConfig())

0 commit comments

Comments
 (0)