Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Comments

Rewrite VRF test to use generated testdata#1028

Merged
gdbelvin merged 2 commits intomasterfrom
vrf-test
Aug 24, 2018
Merged

Rewrite VRF test to use generated testdata#1028
gdbelvin merged 2 commits intomasterfrom
vrf-test

Conversation

@jtoohill
Copy link
Contributor

@jtoohill jtoohill commented Aug 22, 2018

Changes VRF verification tests to use common generated testdata. This makes it easier for other projects that want to implement VRF verification to keep up-to-date with keytransparency's VRF implementation by using the same testdata.

@jtoohill jtoohill requested a review from gdbelvin August 22, 2018 17:57
Copy link
Contributor

@gdbelvin gdbelvin left a comment

Choose a reason for hiding this comment

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

I went back and forth on whether the VRF deserves it's own test data, but this is probably fine for now. If we wanted to get this VRF incorporated into golang/x/crypto, we'd need to change this.

Please provide a detailed PR description, and ensure Travis passes.

@@ -179,40 +186,37 @@ func TestVRF(t *testing.T) {
}

func TestProofToHash(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 a note about how to regenerate the test data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@codecov
Copy link

codecov bot commented Aug 23, 2018

Codecov Report

Merging #1028 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1028   +/-   ##
=======================================
  Coverage   66.01%   66.01%           
=======================================
  Files          39       39           
  Lines        2742     2742           
=======================================
  Hits         1810     1810           
  Misses        613      613           
  Partials      319      319

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3dd1c84...d5b7215. Read the comment docs.

@gdbelvin gdbelvin merged commit 77b82d5 into master Aug 24, 2018
@gdbelvin gdbelvin deleted the vrf-test branch August 24, 2018 09:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants