MCPcopy Create free account
hub / github.com/docker/docker-agent / TestPackage_BinaryName

Function TestPackage_BinaryName

pkg/toolinstall/registry_test.go:335–346  ·  view source on GitHub ↗

--- Package type tests ---

(t *testing.T)

Source from the content-addressed store, hash-verified

333// --- Package type tests ---
334
335func TestPackage_BinaryName(t *testing.T) {
336 t.Parallel()
337
338 assert.Equal(t, "gh", (&Package{
339 RepoName: "cli",
340 Files: []PackageFile{{Name: "gh"}},
341 }).BinaryName())
342
343 assert.Equal(t, "fzf", (&Package{
344 RepoName: "fzf",
345 }).BinaryName())
346}
347
348func TestPackage_IsGoPackage(t *testing.T) {
349 t.Parallel()

Callers

nothing calls this directly

Calls 1

BinaryNameMethod · 0.80

Tested by

no test coverage detected