Skip to content

chore: remove clarity coverage #6771

@simone-stacks

Description

@simone-stacks

Remove the -c, --coverage option from clarity-cli and the underlying EvalHook/CoverageReporter implementation from the Clarity VM.

Why

  • Clarinet already does this better (clarinet test --coverage)
  • The EvalHook trait adds an extra lifetime parameter ('hooks) that propagates through GlobalContext, Environment, and OwnedEnvironment
  • Clarinet is the standard tool for Clarity development
  • Less lines of code we don't need to maintain

What to remove

  • clarity/src/vm/coverage.rs (delete)
  • EvalHook trait and hook calls in clarity/src/vm/mod.rs
  • 'hooks lifetime from context structs in clarity/src/vm/contexts.rs
  • Coverage params from clarity-cli (lib.rs, main.rs, README.md)

If we ever need VM hooks again, the pattern is simple and in git history.

Metadata

Metadata

Assignees

Labels

choreNecessary but less impactful tasks such as cleanup or reorg

Type

No type

Projects

Status

Status: ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions