qubit-metadata 0.6.1

Type-safe metadata model with schemas and composable filters
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Reusable metadata fixtures for filter tests.

use qubit_metadata::Metadata;

/// Creates a representative metadata object for filter tests.
///
/// # Returns
///
/// Metadata containing status, score, ratio, verification, and tag fields.
#[allow(dead_code)]
#[inline]
pub fn sample() -> Metadata {
    let mut m = Metadata::new();
    m.set("status", "active");
    m.set("score", 42_i64);
    m.set("ratio", 0.75_f64);
    m.set("verified", true);
    m.set("tag", "rust");
    m
}