Skip to content

test: expand CodeFragment coverage and docs#146

Merged
adamcavendish merged 1 commit into
masterfrom
adamcavendish/code-fragment-docs-tests
Jun 19, 2026
Merged

test: expand CodeFragment coverage and docs#146
adamcavendish merged 1 commit into
masterfrom
adamcavendish/code-fragment-docs-tests

Conversation

@adamcavendish

Copy link
Copy Markdown
Collaborator

Summary

  • Add broader CodeFragment coverage for imports, nested code block args, template composition, and unbalanced indentation marker validation.
  • Add a runnable code_fragments example showing Python indentation composition through (CodeFragment).
  • Document raw %L vs structured CodeFragment behavior, including UnresolvedIndentMarker and balanced %> / %< requirements.

Tests

  • cargo test -p sigil-stitch fragment -- --nocapture
  • cargo test --test cpp
  • cargo test
  • cargo run --example code_fragments
  • git diff --check

@codecov-commenter

codecov-commenter commented Jun 19, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 98.64865% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/code_block.rs 98.64% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
src/code_block.rs 92.35% <98.64%> (+0.79%) ⬆️
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adamcavendish adamcavendish merged commit d7820fb into master Jun 19, 2026
8 checks passed
@adamcavendish adamcavendish deleted the adamcavendish/code-fragment-docs-tests branch June 19, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants