當前位置: 首頁>>代碼示例>>Golang>>正文


Golang configuration.NewRepositoryWithDefaults函數代碼示例

本文整理匯總了Golang中github.com/cloudfoundry/cli/testhelpers/configuration.NewRepositoryWithDefaults函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewRepositoryWithDefaults函數的具體用法?Golang NewRepositoryWithDefaults怎麽用?Golang NewRepositoryWithDefaults使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了NewRepositoryWithDefaults函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: TestEnvironmentvariablegroup

func TestEnvironmentvariablegroup(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config, &detection.JibberJabberDetector{})

	RegisterFailHandler(Fail)
	RunSpecs(t, "Environmentvariablegroup Suite")
}
開發者ID:tools-alexuser01,項目名稱:cli,代碼行數:7,代碼來源:environmentvariablegroup_suite_test.go

示例2: callUnsetSpaceRole

func callUnsetSpaceRole(args []string, spaceRepo *testapi.FakeSpaceRepository, userRepo *testapi.FakeUserRepository, requirementsFactory *testreq.FakeReqFactory) (*testterm.FakeUI, bool) {
	ui := &testterm.FakeUI{}
	config := testconfig.NewRepositoryWithDefaults()
	cmd := NewUnsetSpaceRole(ui, config, spaceRepo, userRepo)
	passed := testcmd.RunCommand(cmd, args, requirementsFactory)
	return ui, passed
}
開發者ID:tools-alexuser01,項目名稱:cli,代碼行數:7,代碼來源:unset_space_role_test.go

示例3: TestFeatureflag

func TestFeatureflag(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config)

	RegisterFailHandler(Fail)
	RunSpecs(t, "FeatureFlag Suite")
}
開發者ID:Reejoshi,項目名稱:cli,代碼行數:7,代碼來源:featureflag_suite_test.go

示例4: TestPluginRepo

func TestPluginRepo(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config)

	RegisterFailHandler(Fail)
	RunSpecs(t, "PluginRepo Suite")
}
開發者ID:Reejoshi,項目名稱:cli,代碼行數:7,代碼來源:plugin_repo_suite_test.go

示例5: callDeleteOrphanedRoutes

func callDeleteOrphanedRoutes(confirmation string, args []string, reqFactory *testreq.FakeReqFactory, routeRepo *testapi.FakeRouteRepository) (ui *testterm.FakeUI) {
	ui = &testterm.FakeUI{Inputs: []string{confirmation}}
	configRepo := testconfig.NewRepositoryWithDefaults()
	cmd := NewDeleteOrphanedRoutes(ui, configRepo, routeRepo)
	testcmd.RunCommand(cmd, args, reqFactory)
	return
}
開發者ID:GABONIA,項目名稱:cli,代碼行數:7,代碼來源:delete_orphaned_routes_test.go

示例6: TestEnvironmentVariableGroups

func TestEnvironmentVariableGroups(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config)

	RegisterFailHandler(Fail)
	RunSpecs(t, "EnvironmentVariableGroups Suite")
}
開發者ID:Reejoshi,項目名稱:cli,代碼行數:7,代碼來源:environment_variable_groups_suite_test.go

示例7: callCreateServiceBroker

func callCreateServiceBroker(args []string, requirementsFactory *testreq.FakeReqFactory, serviceBrokerRepo *testapi.FakeServiceBrokerRepo) (ui *testterm.FakeUI) {
	ui = &testterm.FakeUI{}
	config := testconfig.NewRepositoryWithDefaults()
	cmd := NewCreateServiceBroker(ui, config, serviceBrokerRepo)
	testcmd.RunCommand(cmd, args, requirementsFactory)
	return
}
開發者ID:palakmathur,項目名稱:cli,代碼行數:7,代碼來源:create_service_broker_test.go

示例8: callOrgUsers

func callOrgUsers(args []string, requirementsFactory *testreq.FakeReqFactory, userRepo *testapi.FakeUserRepository) (ui *testterm.FakeUI) {
	ui = &testterm.FakeUI{}
	config := testconfig.NewRepositoryWithDefaults()
	cmd := NewOrgUsers(ui, config, userRepo)
	testcmd.RunCommand(cmd, args, requirementsFactory)
	return
}
開發者ID:palakmathur,項目名稱:cli,代碼行數:7,代碼來源:org_users_test.go

示例9: TestServicebroker

func TestServicebroker(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config)

	RegisterFailHandler(Fail)
	RunSpecs(t, "Servicebroker Suite")
}
開發者ID:pcf-toronto-ci-bot,項目名稱:cli,代碼行數:7,代碼來源:servicebroker_suite_test.go

示例10: TestServicekey

func TestServicekey(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config, &detection.JibberJabberDetector{})

	RegisterFailHandler(Fail)
	RunSpecs(t, "Servicekey Suite")
}
開發者ID:tools-alexuser01,項目名稱:cli,代碼行數:7,代碼來源:servicekey_suite_test.go

示例11: callStop

func callStop(args []string, requirementsFactory *testreq.FakeReqFactory, appRepo api.ApplicationRepository) (ui *testterm.FakeUI) {
	ui = new(testterm.FakeUI)
	configRepo := testconfig.NewRepositoryWithDefaults()
	cmd := NewStop(ui, configRepo, appRepo)
	testcmd.RunCommand(cmd, args, requirementsFactory)
	return
}
開發者ID:GABONIA,項目名稱:cli,代碼行數:7,代碼來源:stop_test.go

示例12: TestAuthentication

func TestAuthentication(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config)

	RegisterFailHandler(Fail)
	RunSpecs(t, "Authentication Suite")
}
開發者ID:Reejoshi,項目名稱:cli,代碼行數:7,代碼來源:authentication_suite_test.go

示例13: callShowSpace

func callShowSpace(args []string, requirementsFactory *testreq.FakeReqFactory) (ui *testterm.FakeUI) {
	ui = new(testterm.FakeUI)
	config := testconfig.NewRepositoryWithDefaults()
	cmd := NewShowSpace(ui, config)
	testcmd.RunCommand(cmd, args, requirementsFactory)
	return
}
開發者ID:palakmathur,項目名稱:cli,代碼行數:7,代碼來源:space_test.go

示例14: callMapRoute

func callMapRoute(args []string, requirementsFactory *testreq.FakeReqFactory, routeRepo *testapi.FakeRouteRepository, createRoute *testcmd.FakeRouteCreator) (ui *testterm.FakeUI) {
	ui = new(testterm.FakeUI)
	configRepo := testconfig.NewRepositoryWithDefaults()
	cmd := NewMapRoute(ui, configRepo, routeRepo, createRoute)
	testcmd.RunCommand(cmd, args, requirementsFactory)
	return
}
開發者ID:palakmathur,項目名稱:cli,代碼行數:7,代碼來源:map_route_test.go

示例15: TestSecurityGroupSpaces

func TestSecurityGroupSpaces(t *testing.T) {
	config := configuration.NewRepositoryWithDefaults()
	i18n.T = i18n.Init(config)

	RegisterFailHandler(Fail)
	RunSpecs(t, "SecurityGroupSpaces Suite")
}
開發者ID:Reejoshi,項目名稱:cli,代碼行數:7,代碼來源:suite_test.go


注:本文中的github.com/cloudfoundry/cli/testhelpers/configuration.NewRepositoryWithDefaults函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。