< Summary

Line coverage
41%
Covered lines: 444
Uncovered lines: 617
Coverable lines: 1061
Total lines: 1665
Line coverage: 41.8%
Branch coverage
36%
Covered branches: 149
Total branches: 406
Branch coverage: 36.6%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%110%
.ctor(...)100%11100%
Add(...)100%11100%
Add(...)100%66100%
Add(...)100%110%
Add(...)0%16160%
TryAddWithoutValidation(...)100%22100%
TryAddWithoutValidation(...)66.66%66100%
TryAddWithoutValidation(...)0%220%
TryAddWithoutValidation(...)0%24240%
GetValues(...)100%110%
GetValues(...)0%220%
TryGetValues(...)0%220%
TryGetValues(...)0%660%
Contains(...)0%220%
ToString()100%110%
Dump(...)0%10100%
GetHeaderString(...)0%440%
GetEnumerator()100%22100%
GetEnumeratorCore()80%1010100%
System.Collections.IEnumerable.GetEnumerator()100%110%
AddParsedValue(...)0%220%
SetParsedValue(...)100%110%
SetOrRemoveParsedValue(...)0%220%
Remove(...)0%220%
RemoveParsedValue(...)0%28280%
ContainsParsedValue(...)0%14140%
AddHeaders(...)0%20200%
CloneHeaderInfo(...)0%880%
CloneAndAddValue(...)0%220%
CloneStringHeaderInfoValues(...)0%440%
GetOrCreateHeaderInfo(...)0%220%
CreateAndAddHeaderToStore(...)100%110%
TryGetHeaderValue(...)0%220%
TryGetAndParseHeaderInfo(...)75%44100%
ReplaceWithHeaderStoreItemInfo(...)50%2288.88%
ParseRawHeaderValues(...)100%66100%
ParseSingleRawHeaderValue(...)60%101080%
TryParseAndAddValue(...)0%440%
TryParseAndAddRawHeaderValue(...)60%404085.48%
AddParsedValue(...)100%11100%
AddInvalidValue(...)100%11100%
AddRawValue(...)100%11100%
AddValueToStoreValue(...)100%44100%
GetSingleParsedValue(...)0%220%
GetParsedAndInvalidValues(...)0%220%
IsAllowedHeaderName(...)100%11100%
CheckIsAllowedHeaderName(...)50%2260%
PrepareHeaderInfoForAdd(...)100%22100%
ParseAndAddValue(...)81.25%1616100%
GetHeaderDescriptor(...)66.66%6676.92%
TryGetHeaderDescriptor(...)75%8883.33%
CheckContainsNewLineOrNull(...)100%44100%
GetStoreValuesAsStringArray(...)100%22100%
GetStoreValuesAsStringOrStringArray(...)75%4481.48%
GetStoreValuesIntoStringArray(...)0%880%
GetValueCount(...)100%11100%
Count(System.Object)100%44100%
ReadStoreValues(...)100%1414100%
AreEqual(...)0%220%
.ctor(...)100%11100%
ToString()100%11100%
.ctor()100%11100%
CanAddParsedValue(...)100%22100%
AssertContainsNoInvalidValues()83.33%66100%
GetSingleParsedValue()0%10100%
AssertContainsSingleParsedValue(...)0%440%
GetEntriesArray()50%4463.63%
GetEntriesFromDictionary()0%220%
GetEntries()100%110%
GetValueRefOrNullRef(...)60%101073.68%
GetValueRefOrAddDefault(...)75%121285.18%
GrowEntriesAndAddDefault(System.Net.Http.Headers.HeaderDescriptor)0%220%
ConvertToDictionaryAndAddDefault(System.Net.Http.Headers.HeaderDescriptor)0%220%
DictionaryGetValueRefOrAddDefault(System.Net.Http.Headers.HeaderDescriptor)0%220%
AddEntryToStore(...)50%4484.61%
Contains(...)100%11100%
Clear()100%22100%
Remove(...)0%16160%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/Headers/HttpHeaders.cs

Error during reading file 'https://raw.githubusercontent.com/dotnet/runtime/87bcbd26c0325d512bb7d091f493e73201aee1d6/src/libraries/System.Net.Http/src/System/Net/Http/Headers/HttpHeaders.cs': Response status code does not indicate success: 404 (Not Found).

Methods/Properties

.ctor()
.ctor(System.Net.Http.Headers.HttpHeaderType,System.Net.Http.Headers.HttpHeaderType)
NonValidated()
Add(System.String,System.String)
Add(System.Net.Http.Headers.HeaderDescriptor,System.String)
Add(System.String,System.Collections.Generic.IEnumerable`1<System.String>)
Add(System.Net.Http.Headers.HeaderDescriptor,System.Collections.Generic.IEnumerable`1<System.String>)
TryAddWithoutValidation(System.String,System.String)
TryAddWithoutValidation(System.Net.Http.Headers.HeaderDescriptor,System.String)
TryAddWithoutValidation(System.String,System.Collections.Generic.IEnumerable`1<System.String>)
TryAddWithoutValidation(System.Net.Http.Headers.HeaderDescriptor,System.Collections.Generic.IEnumerable`1<System.String>)
GetValues(System.String)
GetValues(System.Net.Http.Headers.HeaderDescriptor)
TryGetValues(System.String,System.Collections.Generic.IEnumerable`1<System.String>&)
TryGetValues(System.Net.Http.Headers.HeaderDescriptor,System.Collections.Generic.IEnumerable`1<System.String>&)
Contains(System.String)
ToString()
Dump(System.Text.ValueStringBuilder&,System.Boolean)
GetHeaderString(System.Net.Http.Headers.HeaderDescriptor)
GetEnumerator()
GetEnumeratorCore()
System.Collections.IEnumerable.GetEnumerator()
AddParsedValue(System.Net.Http.Headers.HeaderDescriptor,System.Object)
SetParsedValue(System.Net.Http.Headers.HeaderDescriptor,System.Object)
SetOrRemoveParsedValue(System.Net.Http.Headers.HeaderDescriptor,System.Object)
Remove(System.String)
RemoveParsedValue(System.Net.Http.Headers.HeaderDescriptor,System.Object,System.Boolean)
ContainsParsedValue(System.Net.Http.Headers.HeaderDescriptor,System.Object)
AddHeaders(System.Net.Http.Headers.HttpHeaders)
CloneHeaderInfo(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo)
CloneAndAddValue(System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.Object)
CloneStringHeaderInfoValues(System.Object)
GetOrCreateHeaderInfo(System.Net.Http.Headers.HeaderDescriptor)
CreateAndAddHeaderToStore(System.Net.Http.Headers.HeaderDescriptor)
TryGetHeaderValue(System.Net.Http.Headers.HeaderDescriptor,System.Object&)
TryGetAndParseHeaderInfo(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo&)
ReplaceWithHeaderStoreItemInfo(System.Object&,System.Object)
ParseRawHeaderValues(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo)
ParseSingleRawHeaderValue(System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.Net.Http.Headers.HeaderDescriptor,System.String)
TryParseAndAddValue(System.Net.Http.Headers.HeaderDescriptor,System.String)
TryParseAndAddRawHeaderValue(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.String,System.Boolean)
AddParsedValue(System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.Object)
AddInvalidValue(System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.String)
AddRawValue(System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.String)
AddValueToStoreValue(T,System.Object&)
GetSingleParsedValue(System.Net.Http.Headers.HeaderDescriptor)
GetParsedAndInvalidValues(System.Net.Http.Headers.HeaderDescriptor)
IsAllowedHeaderName(System.Net.Http.Headers.HeaderDescriptor)
CheckIsAllowedHeaderName(System.Net.Http.Headers.HeaderDescriptor)
PrepareHeaderInfoForAdd(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo&,System.Boolean&)
ParseAndAddValue(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo,System.String)
GetHeaderDescriptor(System.String)
TryGetHeaderDescriptor(System.String,System.Net.Http.Headers.HeaderDescriptor&)
CheckContainsNewLineOrNull(System.String)
GetStoreValuesAsStringArray(System.Net.Http.Headers.HeaderDescriptor,System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo)
GetStoreValuesAsStringOrStringArray(System.Net.Http.Headers.HeaderDescriptor,System.Object,System.String&,System.String[]&)
GetStoreValuesIntoStringArray(System.Net.Http.Headers.HeaderDescriptor,System.Object,System.String[]&)
GetValueCount(System.Net.Http.Headers.HttpHeaders/HeaderStoreItemInfo)
Count(System.Object)
ReadStoreValues(System.Span`1<System.String>,System.Object,System.Net.Http.Headers.HttpHeaderParser,System.Int32&)
AreEqual(System.Object,System.Object,System.Collections.IEqualityComparer)
.ctor(System.String)
ToString()
.ctor()
CanAddParsedValue(System.Net.Http.Headers.HttpHeaderParser)
AssertContainsNoInvalidValues()
GetSingleParsedValue()
AssertContainsSingleParsedValue(System.Collections.Generic.List`1<System.Object>)
IsEmpty()
GetEntriesArray()
GetEntriesFromDictionary()
GetEntries()
Count()
EntriesAreLiveView()
GetValueRefOrNullRef(System.Net.Http.Headers.HeaderDescriptor)
GetValueRefOrAddDefault(System.Net.Http.Headers.HeaderDescriptor)
GrowEntriesAndAddDefault(System.Net.Http.Headers.HeaderDescriptor)
ConvertToDictionaryAndAddDefault(System.Net.Http.Headers.HeaderDescriptor)
DictionaryGetValueRefOrAddDefault(System.Net.Http.Headers.HeaderDescriptor)
AddEntryToStore(System.Net.Http.Headers.HeaderEntry)
Contains(System.Net.Http.Headers.HeaderDescriptor)
Clear()
Remove(System.Net.Http.Headers.HeaderDescriptor)