Appearance
Read Method
Definition
- Namespace:
JASE.TestAnalysis - Assembly:
JASE.TestAnalysis.dll
Overloads
| Name | Description |
|---|---|
CoberturaReport Read(byte[] source, CoverageOptions options = null) | Reads an Cobertura coverage report from a byte array containing XML content. |
CoberturaReport Read(Stream stream, CoverageOptions options = null) | Reads a Cobertura coverage report from an XML stream. |
CoberturaReport Read(byte[] source, CoverageOptions options = null)
csharp
CoberturaReport Read(byte[] source, CoverageOptions options = null)Reads an Cobertura coverage report from a byte array containing XML content.
Parameters
| Name | Description |
|---|---|
options | Optional coverage reader options. If , default options are created. |
source | A byte array containing Cobertura-formatted XML content. |
Returns
A parsed CoberturaReport populated from the supplied XML content.
Remarks
This overload wraps the supplied byte array in a read-only MemoryStream and parses it using the stream-based reader.
This method uses a forward-only XmlReader with DTD processing disabled and comments and insignificant whitespace ignored.
After parsing, package totals are rolled into report totals and report-wide rates are recomputed.
CoberturaReport Read(Stream stream, CoverageOptions options = null)
csharp
CoberturaReport Read(Stream stream, CoverageOptions options = null)Reads a Cobertura coverage report from an XML stream.
Parameters
| Name | Description |
|---|---|
options | Optional coverage reader options. If , default options are created. |
stream | An open readable stream containing Cobertura formatted XML. If the stream supports seeking, its position is restored to its original value after reading. |
Returns
A parsed CoberturaReport populated from the supplied stream.
Remarks
This method parses the current contents of stream using a forward-only XmlReader with DTD processing disabled and comments and insignificant whitespace ignored.
The caller retains ownership of the supplied stream.
After parsing, package totals are rolled into report totals and report-wide rates are recomputed.