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

Add verify API #16

Merged
merged 7 commits into from
May 24, 2021
Merged

Add verify API #16

merged 7 commits into from
May 24, 2021

Conversation

akalin
Copy link
Owner

@akalin akalin commented May 16, 2021

Add verify API.

@akalin akalin changed the base branch from main to create-api May 16, 2021 22:18
@akalin akalin force-pushed the verify-api branch 12 times, most recently from 6fdb624 to ad48b87 Compare May 17, 2021 01:26
@akalin akalin force-pushed the create-api branch 2 times, most recently from 7e7014b to 6f9c2db Compare May 17, 2021 01:33
@akalin akalin force-pushed the verify-api branch 2 times, most recently from 645b63c to 7a97e4a Compare May 17, 2021 02:18
@akalin
Copy link
Owner Author

akalin commented May 17, 2021

@brenthuisman finally got back to coding on this. what do you think of this API for verifying a par2 file? (take a look at main.go) would you be able to use it?

Base automatically changed from create-api to main May 24, 2021 06:39
Also add DoNothingDecoderInterface and checkExtension helper function.

Feature-Start: verify-api
Rename existing verify tests.
Also add DoNothingDecoderInterface and checkExtension helper function.
Rename existing verify tests.
Also change processVerifyOrRepairError to processRepairError,
and make it print to stdout instead of stderr.
Add VerifyAllData option, and create a new FileCounts type that is
in VerifyResult.
Create a new ShardCounts type that is in VerifyResult.

Remove now-unneeded par2.Decoder.Verify and
rsec16.Coder.CanReconstructData functions.

Feature-End: verify-api
@akalin
Copy link
Owner Author

akalin commented May 24, 2021

Merging this, but I can address any comments in a follow-up.

@akalin akalin merged commit 1ec4dfd into main May 24, 2021
@akalin akalin deleted the verify-api branch May 24, 2021 06:49
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.

1 participant