Skip to content

Commit

Permalink
Adding copyright header to generated test file (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlewi committed Dec 20, 2023
1 parent 56cdf9a commit 31c65f5
Show file tree
Hide file tree
Showing 2 changed files with 560 additions and 543 deletions.
15 changes: 12 additions & 3 deletions src/tests/full_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,9 +782,18 @@ fn generate_test_vectors() -> Result<(), ProtocolError> {

#[rustfmt::skip]
output.push_str(
"// To regenerate these test vectors, run:\n\
// FULL_TEST_VECTORS_FILE=src/tests/full_test_vectors.rs cargo test --features ristretto255,curve25519 -- generate_test_vectors\n\
\n",
"\
// Copyright (c) Meta Platforms, Inc. and affiliates.\n\
//\n\
// This source code is dual-licensed under either the MIT license found in the\n\
// LICENSE-MIT file in the root directory of this source tree or the Apache\n\
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory\n\
// of this source tree. You may select, at your option, one of the above-listed\n\
// licenses.\n\
//\n\
// To regenerate these test vectors, run:\n\
// FULL_TEST_VECTORS_FILE=src/tests/full_test_vectors.rs cargo test --features ristretto255,curve25519 -- generate_test_vectors\n\
\n",
);

#[cfg(feature = "ristretto255")]
Expand Down

0 comments on commit 31c65f5

Please sign in to comment.