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

Recreate the manual testing of share encoding #630

Closed
Tracked by #1256
evan-forbes opened this issue Aug 18, 2022 · 3 comments
Closed
Tracked by #1256

Recreate the manual testing of share encoding #630

evan-forbes opened this issue Aug 18, 2022 · 3 comments
Labels
testing items that are strictly related to adding or extending test coverage

Comments

@evan-forbes
Copy link
Member

Why is this test commented?

Originally posted by @sweexordious in #627 (comment)

When moving share encoding and decoding logic to the app, we had to comment out a test because it was designed around some tendermint logic, like creating votes and using methods instead of functions to encode shares. We should recreate this test by changing those requirements.

@rach-id rach-id moved this to TODO in Celestia Node Aug 18, 2022
@rach-id rach-id added the testing items that are strictly related to adding or extending test coverage label Aug 18, 2022
@evan-forbes
Copy link
Member Author

we have since added quite a few manual tests, and I'm not sure of the value that we would get from this anymore. I guess the manual tests would act as a forcing function to notify reviewers if anything changes the encoding, but that's about it.

Leaving this as a stretch issue for the epic, but I am also okay with closing this as unplanned. Will defer to @rootulp

@rootulp
Copy link
Collaborator

rootulp commented Feb 3, 2023

This issue refers to the TestMakeShares test which was commented out and eventually removed. It appears to have tested

// 			got := tt.args.data.SplitIntoShares()

which no longer exists but it resembles

func Split(data coretypes.Data, useShareIndexes bool) ([]Share, error) {
which doesn't have unit tests so I think we can update this issue to add unit tests to that function.

@rootulp rootulp removed this from Celestia Node Feb 3, 2023
@rootulp rootulp added this to the Mainnet milestone Feb 3, 2023
@evan-forbes evan-forbes removed this from the Mainnet milestone Apr 2, 2023
@rootulp
Copy link
Collaborator

rootulp commented Jan 21, 2024

That file has been migrated to the go-square repo: https://github.com/celestiaorg/go-square/blob/main/shares/share_splitting.go

SplitTxs has tests but SplitBlobs doesn't: https://github.com/celestiaorg/go-square/blob/main/shares/share_splitting_test.go

@rootulp rootulp closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing items that are strictly related to adding or extending test coverage
Projects
None yet
Development

No branches or pull requests

3 participants