mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Exclude CompactPrefixTree from code coverage
This commit is contained in:
@@ -4,6 +4,7 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
/*
|
||||
@@ -25,6 +26,7 @@ namespace Markdig.Helpers
|
||||
/// <para>Something between a Trie and a full Radix tree, but stored linearly in memory</para>
|
||||
/// </summary>
|
||||
/// <typeparam name="TValue">The value associated with the key</typeparam>
|
||||
[ExcludeFromCodeCoverage]
|
||||
internal sealed class CompactPrefixTree<TValue>
|
||||
//#if !LEGACY
|
||||
// : IReadOnlyDictionary<string, TValue>, IReadOnlyList<KeyValuePair<string, TValue>>
|
||||
|
||||
12
src/Markdig/Helpers/ExcludeFromCodeCoverageAttribute.cs
Normal file
12
src/Markdig/Helpers/ExcludeFromCodeCoverageAttribute.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
#if NET35 || UAP
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.CodeAnalysis
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]
|
||||
public class ExcludeFromCodeCoverageAttribute : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1,11 +1,13 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Markdig.Helpers
|
||||
{
|
||||
/// <summary>
|
||||
/// Inspired by CoreLib, taken from https://github.com/MihaZupan/SharpCollections, cc @MihaZupan
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
internal static class ThrowHelper
|
||||
{
|
||||
public static void ThrowArgumentNullException(ExceptionArgument argument)
|
||||
|
||||
Reference in New Issue
Block a user