Introduce method "Environment" to the Runners interface.

This way we can relate to which environment a runner belongs.
This commit is contained in:
Maximilian Paß
2022-04-10 21:48:30 +02:00
parent 8feffdae3a
commit b7a20e3114
7 changed files with 35 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
// Code generated by mockery v2.10.4. DO NOT EDIT.
package runner
@@ -32,6 +32,20 @@ func (_m *RunnerMock) Destroy() error {
return r0
}
// Environment provides a mock function with given fields:
func (_m *RunnerMock) Environment() dto.EnvironmentID {
ret := _m.Called()
var r0 dto.EnvironmentID
if rf, ok := ret.Get(0).(func() dto.EnvironmentID); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(dto.EnvironmentID)
}
return r0
}
// ExecuteInteractively provides a mock function with given fields: id, stdin, stdout, stderr
func (_m *RunnerMock) ExecuteInteractively(id string, stdin io.ReadWriter, stdout io.Writer, stderr io.Writer) (<-chan ExitInfo, context.CancelFunc, error) {
ret := _m.Called(id, stdin, stdout, stderr)