Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller: impl Eq and PartialEq for Action #993

Merged
merged 1 commit into from Sep 1, 2022

Conversation

Sherlock-Holo
Copy link
Contributor

let Action supports Eq and PartialEq allow user write unit test when
they want to check the action which returned by their codes

Motivation

the Action doesn't implement the Eq or PartialEq, when writing unit test, user can't check the returned Action is correct or not.
if Action implements Eq and PartialEq, user can compare it

Solution

add #[derive(Eq, PartialEq)] for Action

@clux
Copy link
Member

clux commented Aug 31, 2022

Hey, thanks for this. This seems reasonable to me! Needs the usual --signoff stuff, but otherwise happy to merge this.

@clux clux added the changelog-add changelog added category for prs label Aug 31, 2022
@clux clux added this to the 0.75.0 milestone Aug 31, 2022
@codecov-commenter

This comment was marked as off-topic.

let Action supports Eq and PartialEq allow user write unit test when
they want to check the action which returned by their codes

Signed-off-by: Sherlock Holo <sherlockya@gmail.com>
@Sherlock-Holo
Copy link
Contributor Author

--signoff is used now

@clux clux changed the title feat: impl Eq and PartialEq for Action Controller: impl Eq and PartialEq for Action Sep 1, 2022
@clux clux merged commit a18fcb8 into kube-rs:master Sep 1, 2022
@Sherlock-Holo Sherlock-Holo deleted the eq-action branch September 1, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-add changelog added category for prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants