v0.2.5-pre.010.fix.001
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// file: crates/ksp-logging-lib/tests/overhead.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Diagnostic gross-overhead probe for the reload layer used by KSP Logging.
|
||||
|
||||
use tracing_subscriber::layer::SubscriberExt; // rust-rules: trait-import
|
||||
|
||||
const TEST_TARGET: &str = "ksp-logging-lib";
|
||||
const ITERATIONS: u64 = 200_000;
|
||||
const TEST_TARGET: &str = "ksp-logging-lib";
|
||||
|
||||
fn emit_probe_events() {
|
||||
for sequence in 0..ITERATIONS {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-logging-lib/tests/ownership.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! Integration audit ensuring KSP crates do not bypass the logging facade.
|
||||
|
||||
@@ -157,6 +157,11 @@ fn workspace_crates_do_not_bypass_ksp_logging_facade() {
|
||||
std::result::Result::Err(_) => continue,
|
||||
};
|
||||
assert!(!source_uses_direct_path(source.as_str(), "tracing::"), "{} bypasses ksp-logging-lib via tracing", rust_file.display());
|
||||
assert!(
|
||||
!source_uses_direct_path(source.as_str(), "ksp_logging_lib::tracing::"),
|
||||
"{} bypasses ksp-logging-lib via its hidden tracing bridge",
|
||||
rust_file.display(),
|
||||
);
|
||||
assert!(
|
||||
!source_uses_direct_path(source.as_str(), "tracing_subscriber::"),
|
||||
"{} bypasses ksp-logging-lib via tracing-subscriber",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// file: crates/ksp-logging-lib/tests/runtime.rs
|
||||
// version: 9
|
||||
// version: 10
|
||||
|
||||
//! Integration tests for global initialization, takeover filtering, non-blocking outputs and hot reload.
|
||||
|
||||
const EXTERNAL_TARGET: &str = "sqlx";
|
||||
const JSON_KSP_TARGET: &str = "ksp-logging-json-test";
|
||||
const LOGGING_TARGET: &str = "ksp-logging-lib";
|
||||
const OTHER_KSP_TARGET: &str = "ksp-store-lib";
|
||||
const JSON_KSP_TARGET: &str = "ksp-logging-json-test";
|
||||
const EXTERNAL_TARGET: &str = "sqlx";
|
||||
|
||||
fn logging_trace_enabled() -> bool {
|
||||
return tracing::enabled!(target: LOGGING_TARGET, tracing::Level::TRACE);
|
||||
|
||||
Reference in New Issue
Block a user