mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-13 13:54:56 +00:00
[PR #389] [MERGED] Improve code coverage #981
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/xoofx/markdig/pull/389
Author: @MihaZupan
Created: 1/22/2020
Status: ✅ Merged
Merged: 1/26/2020
Merged by: @xoofx
Base:
master← Head:code-coverage📝 Commits (9)
f401d50Add SmartyPants testsd18487aFix StringLineGroupIterator.PeekChar for cross-line peeks1252e49Add more custom emoji tests754d11fFix test execution inside VS Enterprise Live Unit Testingd2c89a3Add tests for core Markdown apis655bf13Exclude CompactPrefixTree from code coverage99b250bAdd ContainerBlock tests3f50b3fAdd LinkHelper.UrilizeAsGfm tests71c6803Make ExcludeFromCodeCoverage compatibility stub internal📊 Changes
15 files changed (+377 additions, -15 deletions)
View changed files
➕
src/Markdig.Tests/TestContainerBlocks.cs(+70 -0)📝
src/Markdig.Tests/TestCustomEmojis.cs(+30 -0)📝
src/Markdig.Tests/TestLinkHelper.cs(+10 -0)➕
src/Markdig.Tests/TestMarkdigCoreApi.cs(+148 -0)📝
src/Markdig.Tests/TestParser.cs(+7 -0)➕
src/Markdig.Tests/TestSmartyPants.cs(+36 -0)📝
src/Markdig.Tests/TestStringSliceList.cs(+29 -0)📝
src/Markdig/Extensions/Emoji/EmojiMapping.cs(+4 -4)📝
src/Markdig/Helpers/CompactPrefixTree.cs(+2 -0)➕
src/Markdig/Helpers/ExcludeFromCodeCoverageAttribute.cs(+12 -0)📝
src/Markdig/Helpers/LinkHelper.cs(+3 -5)📝
src/Markdig/Helpers/StringLineGroup.cs(+19 -4)📝
src/Markdig/Helpers/ThrowHelper.cs(+2 -0)📝
src/Markdig/Syntax/ContainerBlock.cs(+4 -0)📝
src/Markdig/Syntax/SourceSpan.cs(+1 -2)📄 Description
Add some tests and fix a few details that those tests uncovered.
I think I can push coverage to ~98% with reasonable tests like this, the rest would be catching every edge-case handling logic.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.