MCPcopy
hub / github.com/cloudfoundry/cli / TestPlugin

Function TestPlugin

cf/commands/plugin/plugin_suite_test.go:16–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func TestPlugin(t *testing.T) {
17 config := configuration.NewRepositoryWithDefaults()
18 i18n.T = i18n.Init(config)
19
20 _ = plugin.Plugins{}
21
22 RegisterFailHandler(Fail)
23
24 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_with_help"), "test_with_help")
25 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_with_orgs"), "test_with_orgs")
26 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_with_orgs_short_name"), "test_with_orgs_short_name")
27 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_with_push"), "test_with_push")
28 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_with_push_short_name"), "test_with_push_short_name")
29 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_1"), "test_1")
30 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "test_2"), "test_2")
31 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "empty_plugin"), "empty_plugin")
32 pluginbuilder.BuildTestBinary(filepath.Join("..", "..", "..", "fixtures", "plugins", "alias_conflicts"), "alias_conflicts")
33
34 RunSpecs(t, "Plugin Suite")
35}

Callers

nothing calls this directly

Calls 3

InitFunction · 0.92
BuildTestBinaryFunction · 0.92

Tested by

no test coverage detected