Skip to content

api/types/filters: Args: use pointer receiver and update tests#45394

Closed
thaJeztah wants to merge 3 commits intomoby:masterfrom
thaJeztah:filter_args_pointer
Closed

api/types/filters: Args: use pointer receiver and update tests#45394
thaJeztah wants to merge 3 commits intomoby:masterfrom
thaJeztah:filter_args_pointer

Conversation

@thaJeztah
Copy link
Member

Use a pointer receiver, to make it easier to use this type without having to call filter.NewArgs()

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Apr 25, 2023
@thaJeztah thaJeztah force-pushed the filter_args_pointer branch 3 times, most recently from b75f338 to c93a606 Compare April 28, 2023 22:02
@thaJeztah thaJeztah force-pushed the filter_args_pointer branch from 7278e74 to b9a6b9f Compare January 13, 2025 14:39
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    api/types/filters/parse_test.go:26:25: SA9005: struct type 'github.com/docker/docker/api/types/filters.Args' doesn't have any exported fields, nor custom marshaling (staticcheck)
        s, err := json.Marshal(NewArgs())
                               ^
    api/types/filters/parse_test.go:31:24: SA9005: struct type 'github.com/docker/docker/api/types/filters.Args' doesn't have any exported fields, nor custom marshaling (staticcheck)
        s, err = json.Marshal(Args{})
                              ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

@thaJeztah thaJeztah closed this Oct 17, 2025
@thaJeztah thaJeztah deleted the filter_args_pointer branch October 17, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant