qubit-budget 0.3.0

Dependency-light resource limit and budget accounting primitives for Qubit Rust crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Public error-shape coverage for transactional string rendering.

use qubit_budget::BudgetedStringError;

#[test]
fn test_budgeted_string_error_debug_representation_is_stable_enough_to_inspect() {
    let error = BudgetedStringError::<(), &'static str>::LengthOverflow;
    assert_eq!(format!("{error:?}"), "LengthOverflow");
}