mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
[no-relnotes] Update moq to use rm and goimports
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -25,7 +25,7 @@ import (
|
||||
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
|
||||
)
|
||||
|
||||
//go:generate moq -stub -out mknod_mock.go . mknoder
|
||||
//go:generate moq -rm -fmt=goimports -stub -out mknod_mock.go . mknoder
|
||||
type mknoder interface {
|
||||
Mknode(string, int, int) error
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
|
||||
)
|
||||
|
||||
//go:generate moq -stub -out cmd_mock.go . cmder
|
||||
//go:generate moq -rm -fmt=goimports -stub -out cmd_mock.go . cmder
|
||||
type cmder interface {
|
||||
// Run executes the command and returns the stdout, stderr, and an error if any
|
||||
Run(string, ...string) error
|
||||
|
||||
Reference in New Issue
Block a user