[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

@@ -19,7 +19,7 @@ package oci
// Runtime is an interface for a runtime shim. The Exec method accepts a list
// of command line arguments, and returns an error / nil.
//
//go:generate moq -rm -stub -out runtime_mock.go . Runtime
//go:generate moq -rm -fmt=goimports -stub -out runtime_mock.go . Runtime
type Runtime interface {
Exec([]string) error
String() string

View File

@@ -33,7 +33,7 @@ type SpecModifier interface {
// Spec defines the operations to be performed on an OCI specification
//
//go:generate moq -stub -out spec_mock.go . Spec
//go:generate moq -rm -fmt=goimports -stub -out spec_mock.go . Spec
type Spec interface {
Load() (*specs.Spec, error)
Flush() error