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

feat(prospective-parachains): implements GetBackableCandidates #4374

Open
wants to merge 14 commits into
base: eclesio/fragment-chain-impl
Choose a base branch
from

Conversation

DanielDDHM
Copy link

Changes

implements GetBackableCandidates

Tests

Unit Tests: Core logic is tested in isolation using testify for assertions

go test -tags integration github.com/ChainSafe/gossamer

Issues

@DanielDDHM DanielDDHM closed this Dec 5, 2024
@DanielDDHM DanielDDHM reopened this Dec 12, 2024
@P1sar
Copy link
Member

P1sar commented Dec 12, 2024

Hey @DanielDDHM! Thank you for your contribution! Please can you assign corresponding issue to your self, this will helps us track progress. Thank you!
If you have any questions, please do not hesitate to ask

@DanielDDHM
Copy link
Author

Hey @DanielDDHM! Thank you for your contribution! Please can you assign corresponding issue to your self, this will helps us track progress. Thank you! If you have any questions, please do not hesitate to ask

Hello @P1sar I will be assign and focus on this task again asap, at the moment I am focusing on performing this one #4390

anything else, i will let you know, thanks.

@DanielDDHM DanielDDHM marked this pull request as ready for review December 13, 2024 07:28
@DanielDDHM DanielDDHM changed the title feat(prospective-parachains): add GetBackableCandidates feat(prospective-parachains): implements GetBackableCandidates Dec 13, 2024
@DanielDDHM
Copy link
Author

DanielDDHM commented Dec 13, 2024

@haikoschol @EclesioMeloJunior @P1sar a small review please.

@DanielDDHM DanielDDHM changed the title feat(prospective-parachains): implements GetBackableCandidates feat(prospective-parachains): implements GetBackableCandidates Dec 14, 2024
}
}

func TestGetBackableCandidates(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add more tests to cover the various cases that result in an empty response.

You probably want to use a generated mock for that. Here is an example for how to do that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@haikoschol i trying to refactor these tests and i will let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants