"os/exec" "path" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/vito/gocart/command_runner/fake_command_runner" . "github.com/vito/gocart/command_runner/fake_command_runner/matchers" . "github.com/vito/gocart/repository" ) var _ = Describe("GitRepository", func() { var repoPath string var gitRepo *GitRepository var runner *fake_command_runner.FakeCommandRunner BeforeEach(func() { runner = fake_command_runner.New() tmpdir, err := ioutil.TempDir(os.TempDir(), "git_repo") Expect(err).ToNot(HaveOccurred()) repoPath = tmpdir os.Mkdir(path.Join(repoPath, ".git"), 0600) repo, err := New(repoPath, runner) Expect(err).ToNot(HaveOccurred()) gitRepo = repo.(*GitRepository)
"os/exec" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/vito/gocart/command_runner/fake_command_runner" . "github.com/vito/gocart/command_runner/fake_command_runner/matchers" dependency_package "github.com/vito/gocart/dependency" . "github.com/vito/gocart/fetcher" "github.com/vito/gocart/gopath" ) var _ = Describe("Fetcher", func() { var dependency dependency_package.Dependency var fetcher *Fetcher var runner *fake_command_runner.FakeCommandRunner BeforeEach(func() { var err error dependency = dependency_package.Dependency{ Path: "github.com/vito/gocart", Version: "v1.2", } runner = fake_command_runner.New() fetcher, err = New(runner) Expect(err).ToNot(HaveOccurred()) })
"os/exec" "path" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/vito/gocart/command_runner/fake_command_runner" . "github.com/vito/gocart/command_runner/fake_command_runner/matchers" . "github.com/vito/gocart/repository" ) var _ = Describe("HgRepository", func() { var repoPath string var hgRepo *HgRepository var runner *fake_command_runner.FakeCommandRunner BeforeEach(func() { runner = fake_command_runner.New() tmpdir, err := ioutil.TempDir(os.TempDir(), "hg_repo") Expect(err).ToNot(HaveOccurred()) repoPath = tmpdir os.Mkdir(path.Join(repoPath, ".hg"), 0600) repo, err := New(repoPath, runner) Expect(err).ToNot(HaveOccurred()) hgRepo = repo.(*HgRepository)
"os/exec" "path" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/vito/gocart/command_runner/fake_command_runner" . "github.com/vito/gocart/command_runner/fake_command_runner/matchers" . "github.com/vito/gocart/repository" ) var _ = Describe("BzrRepository", func() { var repoPath string var bzrRepo *BzrRepository var runner *fake_command_runner.FakeCommandRunner BeforeEach(func() { runner = fake_command_runner.New() tmpdir, err := ioutil.TempDir(os.TempDir(), "bzr_repo") Expect(err).ToNot(HaveOccurred()) repoPath = tmpdir os.Mkdir(path.Join(repoPath, ".bzr"), 0600) repo, err := New(repoPath, runner) Expect(err).ToNot(HaveOccurred()) bzrRepo = repo.(*BzrRepository)