cli/command/plugin/list_test.go:61:31: `TestList$1` - `filter` is unused (unparam)

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Silvin Lubecki 2019-04-02 13:25:33 +02:00 committed by Sebastiaan van Stijn
parent 75c60c1af7
commit ab1aeedb27
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ func TestListErrors(t *testing.T) {
} }
func TestList(t *testing.T) { func TestList(t *testing.T) {
singlePluginListFunc := func(filter filters.Args) (types.PluginsListResponse, error) { singlePluginListFunc := func(_ filters.Args) (types.PluginsListResponse, error) {
return types.PluginsListResponse{ return types.PluginsListResponse{
{ {
ID: "id-foo", ID: "id-foo",
@ -113,7 +113,7 @@ func TestList(t *testing.T) {
"format": "{{ .ID }}", "format": "{{ .ID }}",
}, },
golden: "plugin-list-with-no-trunc-option.golden", golden: "plugin-list-with-no-trunc-option.golden",
listFunc: func(filter filters.Args) (types.PluginsListResponse, error) { listFunc: func(_ filters.Args) (types.PluginsListResponse, error) {
return types.PluginsListResponse{ return types.PluginsListResponse{
{ {
ID: "xyg4z2hiSLO5yTnBJfg4OYia9gKA6Qjd", ID: "xyg4z2hiSLO5yTnBJfg4OYia9gKA6Qjd",
@ -142,7 +142,7 @@ func TestList(t *testing.T) {
"format": "{{ .Name }}", "format": "{{ .Name }}",
}, },
golden: "plugin-list-sort.golden", golden: "plugin-list-sort.golden",
listFunc: func(filter filters.Args) (types.PluginsListResponse, error) { listFunc: func(_ filters.Args) (types.PluginsListResponse, error) {
return types.PluginsListResponse{ return types.PluginsListResponse{
{ {
ID: "id-1", ID: "id-1",