// Copyright (c) 2026 Kirky.X
//
// Licensed under the MIT License
// See LICENSE file in the project root for full license information.

//! Error tracking tests
//!
//! 测试错误追踪功能

#[cfg(test)]
mod tests {
    use dbnexus::tracing::context::TracingContext;
    use std::io;

    #[test]
    fn test_record_error() {
        let mut context = TracingContext::new("test_span");
        let error = io::Error::new(io::ErrorKind::NotFound, "test error");
        context.record_error(&error);
        // 验证错误已记录
    }
}
