本文整理匯總了Golang中github.com/concourse/atc/resource/fakes.FakeResource.CheckArgsForCall方法的典型用法代碼示例。如果您正苦於以下問題:Golang FakeResource.CheckArgsForCall方法的具體用法?Golang FakeResource.CheckArgsForCall怎麽用?Golang FakeResource.CheckArgsForCall使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/concourse/atc/resource/fakes.FakeResource
的用法示例。
在下文中一共展示了FakeResource.CheckArgsForCall方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1:
Ω(lockedInputs).Should(Equal([]db.NamedLock{db.ResourceCheckingLock("pipeline:some-resource")}))
Ω(writeImmediatelyLock.ReleaseCallCount()).Should(Equal(1))
})
It("releases after checking", func() {
Eventually(times).Should(Receive())
Ω(fakeResource.ReleaseCallCount()).Should(Equal(1))
})
Context("when there is no current version", func() {
It("checks from nil", func() {
Eventually(times).Should(Receive())
_, version := fakeResource.CheckArgsForCall(0)
Ω(version).Should(BeNil())
})
})
Context("when there is a current version", func() {
BeforeEach(func() {
fakeRadarDB.GetLatestVersionedResourceReturns(
db.SavedVersionedResource{
ID: 1,
VersionedResource: db.VersionedResource{
Version: db.Version{
"version": "1",
},
},
}, nil)