本文整理汇总了Golang中github.com/cloudfoundry-incubator/lattice/ltc/config/target_verifier/fake_target_verifier.FakeTargetVerifier类的典型用法代码示例。如果您正苦于以下问题:Golang FakeTargetVerifier类的具体用法?Golang FakeTargetVerifier怎么用?Golang FakeTargetVerifier使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FakeTargetVerifier类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1:
"github.com/cloudfoundry-incubator/lattice/ltc/config/target_verifier/fake_target_verifier"
"github.com/cloudfoundry-incubator/lattice/ltc/exit_handler/exit_codes"
"github.com/cloudfoundry-incubator/lattice/ltc/exit_handler/fake_exit_handler"
"github.com/cloudfoundry-incubator/lattice/ltc/terminal"
"github.com/cloudfoundry-incubator/lattice/ltc/test_helpers"
"github.com/codegangsta/cli"
config_package "github.com/cloudfoundry-incubator/lattice/ltc/config"
)
var _ = Describe("CommandFactory", func() {
var (
stdinReader *io.PipeReader
stdinWriter *io.PipeWriter
outputBuffer *gbytes.Buffer
terminalUI terminal.UI
config *config_package.Config
fakeTargetVerifier *fake_target_verifier.FakeTargetVerifier
fakeExitHandler *fake_exit_handler.FakeExitHandler
)
BeforeEach(func() {
stdinReader, stdinWriter = io.Pipe()
outputBuffer = gbytes.NewBuffer()
fakeTargetVerifier = &fake_target_verifier.FakeTargetVerifier{}
fakeExitHandler = new(fake_exit_handler.FakeExitHandler)
terminalUI = terminal.NewUI(stdinReader, outputBuffer, nil)
config = config_package.New(persister.NewMemPersister())
})
Describe("TargetBlobCommand", func() {
开发者ID:se77en,项目名称:lattice,代码行数:31,代码来源:blob_config_command_factory_test.go
示例2:
"github.com/cloudfoundry-incubator/lattice/ltc/config/persister"
"github.com/cloudfoundry-incubator/lattice/ltc/config/target_verifier/fake_target_verifier"
"github.com/cloudfoundry-incubator/lattice/ltc/exit_handler/fake_exit_handler"
"github.com/cloudfoundry-incubator/lattice/ltc/terminal"
"github.com/cloudfoundry-incubator/lattice/ltc/test_helpers"
"github.com/codegangsta/cli"
"github.com/pivotal-golang/lager"
)
var _ = Describe("CliAppFactory", func() {
var (
fakeTargetVerifier *fake_target_verifier.FakeTargetVerifier
fakeExitHandler *fake_exit_handler.FakeExitHandler
outputBuffer *gbytes.Buffer
terminalUI terminal.UI
cliApp *cli.App
cliConfig *config.Config
latticeVersion, diegoVersion string
)
BeforeEach(func() {
fakeTargetVerifier = &fake_target_verifier.FakeTargetVerifier{}
fakeExitHandler = new(fake_exit_handler.FakeExitHandler)
memPersister := persister.NewMemPersister()
outputBuffer = gbytes.NewBuffer()
terminalUI = terminal.NewUI(nil, outputBuffer, nil)
cliConfig = config.New(memPersister)
latticeVersion, diegoVersion = "v0.2.Test", "0.12345.0"
})
开发者ID:edwardt,项目名称:lattice,代码行数:30,代码来源:cli_app_factory_test.go
示例3:
"github.com/cloudfoundry-incubator/lattice/ltc/test_helpers/matchers"
"github.com/cloudfoundry-incubator/receptor"
"github.com/cloudfoundry-incubator/runtime-schema/models"
"github.com/goamz/goamz/s3"
"github.com/cloudfoundry-incubator/lattice/ltc/app_examiner"
"github.com/cloudfoundry-incubator/lattice/ltc/app_examiner/fake_app_examiner"
config_package "github.com/cloudfoundry-incubator/lattice/ltc/config"
)
var _ = Describe("DropletRunner", func() {
var (
fakeAppRunner *fake_app_runner.FakeAppRunner
fakeTaskRunner *fake_task_runner.FakeTaskRunner
config *config_package.Config
fakeBlobStore *fake_blob_store.FakeBlobStore
fakeBlobBucket *fake_blob_bucket.FakeBlobBucket
fakeTargetVerifier *fake_target_verifier.FakeTargetVerifier
fakeAppExaminer *fake_app_examiner.FakeAppExaminer
dropletRunner droplet_runner.DropletRunner
)
BeforeEach(func() {
fakeAppRunner = &fake_app_runner.FakeAppRunner{}
fakeTaskRunner = &fake_task_runner.FakeTaskRunner{}
config = config_package.New(persister.NewMemPersister())
fakeBlobStore = &fake_blob_store.FakeBlobStore{}
fakeBlobBucket = &fake_blob_bucket.FakeBlobBucket{}
fakeTargetVerifier = &fake_target_verifier.FakeTargetVerifier{}
fakeAppExaminer = &fake_app_examiner.FakeAppExaminer{}
dropletRunner = droplet_runner.New(fakeAppRunner, fakeTaskRunner, config, fakeBlobStore, fakeBlobBucket, fakeTargetVerifier, fakeAppExaminer)
})
开发者ID:thomasdarimont,项目名称:lattice,代码行数:32,代码来源:droplet_runner_test.go
示例4:
"github.com/cloudfoundry-incubator/lattice/ltc/exit_handler/fake_exit_handler"
"github.com/cloudfoundry-incubator/lattice/ltc/terminal"
"github.com/cloudfoundry-incubator/lattice/ltc/terminal/password_reader/fake_password_reader"
"github.com/cloudfoundry-incubator/lattice/ltc/test_helpers"
"github.com/codegangsta/cli"
config_package "github.com/cloudfoundry-incubator/lattice/ltc/config"
)
var _ = Describe("CommandFactory", func() {
var (
stdinReader *io.PipeReader
stdinWriter *io.PipeWriter
outputBuffer *gbytes.Buffer
terminalUI terminal.UI
config *config_package.Config
configPersister persister.Persister
fakeTargetVerifier *fake_target_verifier.FakeTargetVerifier
fakeBlobStoreVerifier *fake_blob_store_verifier.FakeBlobStoreVerifier
fakeExitHandler *fake_exit_handler.FakeExitHandler
fakePasswordReader *fake_password_reader.FakePasswordReader
)
BeforeEach(func() {
stdinReader, stdinWriter = io.Pipe()
outputBuffer = gbytes.NewBuffer()
fakeExitHandler = &fake_exit_handler.FakeExitHandler{}
fakePasswordReader = &fake_password_reader.FakePasswordReader{}
terminalUI = terminal.NewUI(stdinReader, outputBuffer, fakePasswordReader)
fakeTargetVerifier = &fake_target_verifier.FakeTargetVerifier{}
fakeBlobStoreVerifier = &fake_blob_store_verifier.FakeBlobStoreVerifier{}
configPersister = persister.NewMemPersister()
开发者ID:SrinivasChilveri,项目名称:lattice,代码行数:32,代码来源:config_command_factory_test.go
示例5:
"github.com/cloudfoundry-incubator/lattice/ltc"
"github.com/cloudfoundry-incubator/lattice/ltc/cli_app_factory"
"github.com/cloudfoundry-incubator/lattice/ltc/config"
"github.com/cloudfoundry-incubator/lattice/ltc/config/persister"
"github.com/cloudfoundry-incubator/lattice/ltc/config/target_verifier/fake_target_verifier"
"github.com/cloudfoundry-incubator/lattice/ltc/terminal"
"github.com/cloudfoundry-incubator/lattice/ltc/test_helpers"
"github.com/codegangsta/cli"
"github.com/onsi/gomega/gbytes"
)
var _ = Describe("HelpHelpers", func() {
var (
fakeTargetVerifier *fake_target_verifier.FakeTargetVerifier
outputBuffer *gbytes.Buffer
terminalUI terminal.UI
cliConfig *config.Config
cliApp *cli.App
)
BeforeEach(func() {
fakeTargetVerifier = &fake_target_verifier.FakeTargetVerifier{}
outputBuffer = gbytes.NewBuffer()
terminalUI = terminal.NewUI(nil, outputBuffer, nil)
cliConfig = config.New(persister.NewMemPersister())
cliApp = cli_app_factory.MakeCliApp(
"",
"~/",
nil,
cliConfig,
nil,
开发者ID:rajkumargithub,项目名称:lattice,代码行数:31,代码来源:help_helpers_test.go
注:本文中的github.com/cloudfoundry-incubator/lattice/ltc/config/target_verifier/fake_target_verifier.FakeTargetVerifier类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论