本文整理汇总了Golang中code/cloudfoundry/org/garden-shed/layercake/fake_cake.FakeCake.QuotaedPathReturns方法的典型用法代码示例。如果您正苦于以下问题:Golang FakeCake.QuotaedPathReturns方法的具体用法?Golang FakeCake.QuotaedPathReturns怎么用?Golang FakeCake.QuotaedPathReturns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类code/cloudfoundry/org/garden-shed/layercake/fake_cake.FakeCake
的用法示例。
在下文中一共展示了FakeCake.QuotaedPathReturns方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1:
Expect(mountpoint).To(Equal("/some/graph/driver/mount/point"))
Expect(envvars).To(Equal(
[]string{
"env1=env1value",
"env2=env2value",
},
))
})
})
Context("when the quota is positive", func() {
It("should return the quotaed mount point path", func() {
quotaedPath := "/path/to/quotaed/bananas"
fakeCake.QuotaedPathReturns(quotaedPath, nil)
mountPointPath, _, err := provider.Create(
lagertest.NewTestLogger("test"),
"some-id",
&repository_fetcher.Image{
ImageID: "some-image-id",
},
rootfs_provider.Spec{
Namespaced: false,
QuotaSize: int64(10 * 1024 * 1024),
},
)
Expect(err).ToNot(HaveOccurred())
Expect(mountPointPath).To(Equal(quotaedPath))