sdk

Radroots SDK and bindings
git clone https://radroots.dev/git/sdk.git
Log | Files | Refs | README

coverage.toml (2897B)


      1 [policy]
      2 enforce = true
      3 require_regions = true
      4 require_functions = true
      5 require_lines = true
      6 
      7 [toolchain]
      8 rust = "1.92.0"
      9 wasm_target = "wasm32-unknown-unknown"
     10 
     11 [report]
     12 output = "target/sdk-coverage/summary.json"
     13 ignore_filename_regex = "(/target/|/\\.cargo/registry/|/Cellar/rust/|/crates/.+_bindings/|/crates/replica_db_wasm/src/wasm_impl.rs|/tools/xtask/src/(check|contracts|coverage|fs|generate|main|output|package_matrix|wasm)\\.rs)"
     14 
     15 [scopes.radroots_sdk]
     16 paths = ["crates/sdk/src/**"]
     17 threshold = 98.0
     18 
     19 [scopes.xtask_policy]
     20 paths = ["tools/xtask/src/coverage_policy.rs"]
     21 threshold = 100.0
     22 
     23 [scopes.events_codec_wasm]
     24 paths = ["crates/events_codec_wasm/src/**"]
     25 threshold = 100.0
     26 
     27 [scopes.sql_wasm_runtime]
     28 paths = ["crates/sql_wasm_runtime/src/**"]
     29 threshold = 100.0
     30 
     31 [scopes.replica_sync_wasm]
     32 paths = ["crates/replica_sync_wasm/src/**"]
     33 threshold = 100.0
     34 
     35 [scopes.replica_db_snapshot]
     36 paths = ["crates/replica_db_wasm/src/snapshot.rs"]
     37 threshold = 100.0
     38 
     39 [generated]
     40 typescript = "generated TypeScript is excluded from line coverage and verified by generator tests, generated-output reproducibility, package export checks, and pnpm typecheck; current handwritten package entrypoints only re-export generated surfaces and must gain focused tests if runtime logic is added"
     41 binding_crates = "generated Rust binding crates are excluded from line coverage and verified by generator unit tests plus generated TypeScript reproducibility"
     42 wasm_glue = "wasm-bindgen glue is excluded only while pure SDK behavior is covered by native extracted-logic tests and generated package checks"
     43 
     44 [exclusions.generated_typescript]
     45 paths = ["packages/*/src/generated/**", "packages/*/dist/**"]
     46 reason = "generated package output is checked through cargo xtask check, cargo xtask generate ts, cargo xtask generate wasm, and pnpm typecheck"
     47 
     48 [exclusions.generated_binding_crates]
     49 paths = ["crates/*_bindings/**"]
     50 reason = "binding crates are generator-owned source facades with behavior covered by xtask generator tests"
     51 
     52 [exclusions.wasm_glue_bootstrap]
     53 paths = ["crates/replica_db_wasm/src/wasm_impl.rs"]
     54 reason = "temporary bootstrap exclusion for the generated-style DB wrapper forwarding file while exported snapshot policy and sync parsing behavior are covered natively"
     55 
     56 [exclusions.xtask_command_glue]
     57 paths = [
     58   "tools/xtask/src/check.rs",
     59   "tools/xtask/src/contracts.rs",
     60   "tools/xtask/src/coverage.rs",
     61   "tools/xtask/src/fs.rs",
     62   "tools/xtask/src/generate.rs",
     63   "tools/xtask/src/main.rs",
     64   "tools/xtask/src/output.rs",
     65   "tools/xtask/src/package_matrix.rs",
     66   "tools/xtask/src/wasm.rs",
     67 ]
     68 reason = "xtask command, filesystem, package-generation, and process-runner glue is validated by cargo xtask generate ts, cargo xtask generate wasm, cargo xtask check, package build/typecheck, and cargo xtask coverage run; pure coverage policy enforcement remains under the xtask_policy strict gate"