MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / AddTransition

Method AddTransition

go/engine/mocks_test.go:403–417  ·  view source on GitHub ↗

AddTransition provides a mock function for the type MockExecutable

(port string, tr Transition)

Source from the content-addressed store, hash-verified

401
402// AddTransition provides a mock function for the type MockExecutable
403func (_mock *MockExecutable) AddTransition(port string, tr Transition) error {
404 ret := _mock.Called(port, tr)
405
406 if len(ret) == 0 {
407 panic("no return value specified for AddTransition")
408 }
409
410 var r0 error
411 if returnFunc, ok := ret.Get(0).(func(string, Transition) error); ok {
412 r0 = returnFunc(port, tr)
413 } else {
414 r0 = ret.Error(0)
415 }
416 return r0
417}
418
419// MockExecutable_AddTransition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTransition'
420type MockExecutable_AddTransition_Call struct {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected