From 94973ba3fc9eb4c8adbec097d97fea28a0f718b7 Mon Sep 17 00:00:00 2001 From: Shingo Omura Date: Mon, 30 Jun 2025 16:06:38 +0900 Subject: [PATCH] Fix typo: s/smock/mock/g Signed-off-by: Shingo Omura --- .../deviceattribute/pci_linux_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/pci_linux_test.go b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/pci_linux_test.go index cb3231a5e0c..866b918525d 100644 --- a/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/pci_linux_test.go +++ b/staging/src/k8s.io/dynamic-resource-allocation/deviceattribute/pci_linux_test.go @@ -37,14 +37,14 @@ func TestGetPCIeRootBAttributeyPCIBusID(t *testing.T) { } tests := map[string]struct { - smockSysfsSetup func(t *testing.T, mockSysfs sysfsPath) + mockSysfsSetup func(t *testing.T, mockSysfs sysfsPath) address string expectedAttribute *DeviceAttribute expectsError bool expectedErrMsg string }{ "valid": { - smockSysfsSetup: func(t *testing.T, mockSysfs sysfsPath) { + mockSysfsSetup: func(t *testing.T, mockSysfs sysfsPath) { devicePath := mockSysfs.Devices(filepath.Join(pcieRoot, "0000:00:13.1", pciBusID)) TouchFile(t, devicePath) busPath := mockSysfs.Bus(filepath.Join("pci", "devices", pciBusID)) @@ -73,7 +73,7 @@ func TestGetPCIeRootBAttributeyPCIBusID(t *testing.T) { expectedErrMsg: "no such file or directory", }, "invalid symlink": { - smockSysfsSetup: func(t *testing.T, mockSysfs sysfsPath) { + mockSysfsSetup: func(t *testing.T, mockSysfs sysfsPath) { devicePath := mockSysfs.Devices(filepath.Join("invalid-pci-root", "0000:00:13.1", pciBusID)) TouchFile(t, devicePath) busPath := mockSysfs.Bus(filepath.Join("pci", "devices", pciBusID)) @@ -89,8 +89,8 @@ func TestGetPCIeRootBAttributeyPCIBusID(t *testing.T) { t.Run(name, func(t *testing.T) { mockSysfsPath := t.TempDir() mockSysfs := sysfsPath(mockSysfsPath) - if test.smockSysfsSetup != nil { - test.smockSysfsSetup(t, mockSysfs) + if test.mockSysfsSetup != nil { + test.mockSysfsSetup(t, mockSysfs) } sysfs = mockSysfs t.Cleanup(func() {