()
| 779 | */ |
| 780 | |
| 781 | fn load_test_vectors() -> io::Result<Vec<TestVector>> { |
| 782 | let mut file = File::open("wots-test-vectors.json")?; |
| 783 | |
| 784 | let mut contents = String::new(); |
| 785 | file.read_to_string(&mut contents)?; |
| 786 | |
| 787 | let test_vectors: Vec<TestVector> = serde_json::from_str(&contents) |
| 788 | .map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?; |
| 789 | |
| 790 | Ok(test_vectors) |
| 791 | } |
| 792 | |
| 793 | /// Run the test vector and verify the expected outputs. |
| 794 | fn verify_test_vector<WOTS: Wots + CompactWots>(test_vector: TestVector) { |
no outgoing calls
no test coverage detected