(service string, oneOff bool)
| 123 | } |
| 124 | |
| 125 | func containerLabels(service string, oneOff bool) map[string]string { |
| 126 | workingdir := "/src/pkg/compose/testdata" |
| 127 | composefile := filepath.Join(workingdir, "compose.yaml") |
| 128 | labels := map[string]string{ |
| 129 | compose.ServiceLabel: service, |
| 130 | compose.ConfigFilesLabel: composefile, |
| 131 | compose.WorkingDirLabel: workingdir, |
| 132 | compose.ProjectLabel: strings.ToLower(testProject), |
| 133 | } |
| 134 | if oneOff { |
| 135 | labels[compose.OneoffLabel] = "True" |
| 136 | } |
| 137 | return labels |
| 138 | } |
| 139 | |
| 140 | func anyCancellableContext() gomock.Matcher { |
| 141 | //nolint:forbidigo // This creates a context type for gomock matching, not for actual test usage |
no outgoing calls
no test coverage detected