[no-relnotes] Update moq to use rm and goimports

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2025-03-12 13:11:37 +02:00
parent 57f077fce7
commit 2a9bae8e80
15 changed files with 16 additions and 15 deletions

View File

@@ -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
}

View File

@@ -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