Skip to content

Commit

Permalink
Silence useless missing_docs warnings for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Dec 5, 2024
1 parent b571f54 commit 0239d18
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cavp/tests/shavs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen_test::{wasm_bindgen_test as test, wasm_bindgen_test_configure};

Expand Down
2 changes: 2 additions & 0 deletions tests/aead_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen_test::{wasm_bindgen_test as test, wasm_bindgen_test_configure};

Expand Down
2 changes: 2 additions & 0 deletions tests/agreement_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
use wasm_bindgen_test::{wasm_bindgen_test as test, wasm_bindgen_test_configure};

Expand Down
2 changes: 2 additions & 0 deletions tests/constant_time_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{constant_time, error, rand};

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
Expand Down
2 changes: 2 additions & 0 deletions tests/digest_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{digest, test, test_file};

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
Expand Down
2 changes: 2 additions & 0 deletions tests/ecdsa_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{
rand,
signature::{self, KeyPair},
Expand Down
2 changes: 2 additions & 0 deletions tests/ed25519_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{
error, rand,
signature::{self, Ed25519KeyPair, KeyPair},
Expand Down
2 changes: 2 additions & 0 deletions tests/error_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(missing_docs)]

#[cfg(feature = "std")]
#[test]
fn error_impl_std_error_error_test() {
Expand Down
2 changes: 2 additions & 0 deletions tests/hkdf_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{digest, error, hkdf, test, test_file};

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
Expand Down
2 changes: 2 additions & 0 deletions tests/hmac_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{digest, hmac, test, test_file};

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
Expand Down
2 changes: 2 additions & 0 deletions tests/pbkdf2_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use core::num::NonZeroU32;
use ring::{digest, error, pbkdf2, test, test_file};

Expand Down
2 changes: 2 additions & 0 deletions tests/quic_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{aead::quic, test, test_file};

#[test]
Expand Down
2 changes: 2 additions & 0 deletions tests/rand_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]

use ring::{
rand::{self, SecureRandom as _},
test,
Expand Down
1 change: 1 addition & 0 deletions tests/rsa_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#![allow(missing_docs)]
#![cfg(feature = "alloc")]

use ring::{
Expand Down
2 changes: 2 additions & 0 deletions tests/signature_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(missing_docs)]

use ring::{signature, test};

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
Expand Down

0 comments on commit 0239d18

Please sign in to comment.