mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00

Rename all files to _test.go and rename the package to e2e_test. This makes the linter less strict about things like dot imports. Add some unused nolint directives to silence some warnings, these can be used to find untested options so someone could add tests for them. Fixes #14996 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
19 lines
321 B
Go
19 lines
321 B
Go
package e2e_test
|
|
|
|
type basicMachine struct {
|
|
args []string
|
|
}
|
|
|
|
func (s basicMachine) buildCmd(m *machineTestBuilder) []string {
|
|
cmd := []string{"-r"}
|
|
if len(s.args) > 0 {
|
|
cmd = append(cmd, s.args...)
|
|
}
|
|
return cmd
|
|
}
|
|
|
|
func (s *basicMachine) withPodmanCommand(args []string) *basicMachine {
|
|
s.args = args
|
|
return s
|
|
}
|