MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / pluginTestPath

Function pluginTestPath

internal/homeplugins/sync_test.go:403–410  ·  view source on GitHub ↗
(root string, goos string, goarch string, id string, version string)

Source from the content-addressed store, hash-verified

401}
402
403func pluginTestPath(root string, goos string, goarch string, id string, version string) string {
404 name := strings.TrimSpace(id)
405 version = strings.TrimSpace(version)
406 if version != "" {
407 name += "-v" + version
408 }
409 return filepath.Join(root, goos, goarch, name+pluginExtension(goos))
410}
411
412func pluginConfigFromYAML(t *testing.T, text string) config.PluginInstanceConfig {
413 t.Helper()

Calls 1

pluginExtensionFunction · 0.70

Tested by

no test coverage detected