--- Package type tests ---
(t *testing.T)
| 333 | // --- Package type tests --- |
| 334 | |
| 335 | func 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 | |
| 348 | func TestPackage_IsGoPackage(t *testing.T) { |
| 349 | t.Parallel() |
nothing calls this directly
no test coverage detected