qubit-io 0.19.2

Runtime-neutral synchronous and asynchronous item-stream I/O for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================

//! Tests for vectored-buffer utility contracts.

use crate::util::requested_items;

#[test]
fn test_vectored_lengths_reject_overflow_without_io() {
    let error = requested_items([usize::MAX, 1].into_iter()).unwrap_err();
    assert_eq!(error.kind(), std::io::ErrorKind::InvalidInput);
}