"os" "path" "path/filepath" "github.com/cloudfoundry-incubator/guardian/rundmc/depot" "github.com/cloudfoundry-incubator/guardian/rundmc/depot/fakes" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/pivotal-golang/lager" "github.com/pivotal-golang/lager/lagertest" ) var _ = Describe("Depot", func() { var ( depotDir string fakeBundle *fakes.FakeBundleCreator dirdepot *depot.DirectoryDepot logger lager.Logger ) BeforeEach(func() { var err error depotDir, err = ioutil.TempDir("", "depot-test") Expect(err).NotTo(HaveOccurred()) logger = lagertest.NewTestLogger("test") fakeBundle = new(fakes.FakeBundleCreator) dirdepot = depot.New(depotDir) })
"errors" "io/ioutil" "os" "path" "path/filepath" "github.com/cloudfoundry-incubator/guardian/rundmc/depot" "github.com/cloudfoundry-incubator/guardian/rundmc/depot/fakes" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Depot", func() { var ( tmpDir string fakeBundle *fakes.FakeBundleCreator dirdepot *depot.DirectoryDepot ) BeforeEach(func() { var err error tmpDir, err = ioutil.TempDir("", "depot-test") Expect(err).NotTo(HaveOccurred()) fakeBundle = new(fakes.FakeBundleCreator) dirdepot = depot.New(tmpDir) }) Describe("lookup", func() { Context("when a subdirectory with the given name does not exist", func() {