本文整理汇总了Golang中github.com/concourse/atc/engine/fakes.FakeBuildDelegate.ExecutionDelegateReturns方法的典型用法代码示例。如果您正苦于以下问题:Golang FakeBuildDelegate.ExecutionDelegateReturns方法的具体用法?Golang FakeBuildDelegate.ExecutionDelegateReturns怎么用?Golang FakeBuildDelegate.ExecutionDelegateReturns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类github.com/concourse/atc/engine/fakes.FakeBuildDelegate
的用法示例。
在下文中一共展示了FakeBuildDelegate.ExecutionDelegateReturns方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1:
Context("constructing steps", func() {
var (
fakeDelegate *fakes.FakeBuildDelegate
fakeInputDelegate *execfakes.FakeGetDelegate
fakeExecutionDelegate *execfakes.FakeTaskDelegate
)
BeforeEach(func() {
fakeDelegate = new(fakes.FakeBuildDelegate)
fakeDelegateFactory.DelegateReturns(fakeDelegate)
fakeInputDelegate = new(execfakes.FakeGetDelegate)
fakeDelegate.InputDelegateReturns(fakeInputDelegate)
fakeExecutionDelegate = new(execfakes.FakeTaskDelegate)
fakeDelegate.ExecutionDelegateReturns(fakeExecutionDelegate)
})
Context("with nested aggregates in hooks", func() {
BeforeEach(func() {
plan := atc.Plan{
Location: &atc.Location{},
OnSuccess: &atc.OnSuccessPlan{
Step: atc.Plan{
Location: &atc.Location{},
Get: &atc.GetPlan{
Name: "some-input",
},
},
Next: atc.Plan{
Location: &atc.Location{},