Skip to content

Add tests#23

Merged
ntnn merged 2 commits intomainfrom
add-tests
Feb 14, 2026
Merged

Add tests#23
ntnn merged 2 commits intomainfrom
add-tests

Conversation

@ntnn
Copy link
Copy Markdown
Owner

@ntnn ntnn commented Feb 14, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive test coverage for the mdextract package. The changes include new test cases for previously untested functions (parseTag, parseFileTag), additional test cases for existing test functions, and enables coverage reporting in the test command.

Changes:

  • Added tests for unexported helper functions (parseTag, parseFileTag)
  • Added error path tests and edge case tests for Extract and ExtractFromFile methods
  • Enhanced Makefile test target to include coverage reporting with -cover flag
  • Added t.Parallel() to all existing test functions for consistent parallel execution

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pkg/mdextract/single_test.go Added 4 new test functions covering parseTag, error handling, table-driven tests for Extract, and additional AcceptBlock cases
pkg/mdextract/multi_test.go Added t.Parallel() to existing tests, added new test cases to TestParseFileTag, and added 3 new test functions for comprehensive multi-file extraction testing
Makefile Added -cover flag to test command to enable coverage reporting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/mdextract/single_test.go Outdated
ntnn added 2 commits February 14, 2026 13:48
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
@ntnn ntnn merged commit 2ed9e9c into main Feb 14, 2026
8 checks passed
@ntnn ntnn deleted the add-tests branch February 14, 2026 12:52
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