1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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 }