Skip to content

Read Method ​

Definition ​

  • Namespace: JASE.TestAnalysis
  • Assembly: JASE.TestAnalysis.dll

Overloads ​

NameDescription
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 ​

NameDescription
optionsOptional coverage reader options. If , default options are created.
sourceA 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 ​

NameDescription
optionsOptional coverage reader options. If , default options are created.
streamAn 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.