• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JaCraig / Archivist / 10017337279 / 1
78%
main: 78%

Build:
DEFAULT BRANCH: main
Ran 20 Jul 2024 03:53AM UTC
Files 55
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Jul 2024 03:50AM UTC coverage: 83.39% (-0.3%) from 83.693%
10017337279.1

push

github

JaCraig
fix: Finishing XML format changes

This commit represents a major overhaul in the project's serialization and deserialization approach, transitioning from `System.Text.Json` to `Newtonsoft.Json` due to limitations with dynamic objects. Key changes include:

- Updated multiple files across the project, including test and format-specific classes, to use `Newtonsoft.Json` for JSON and XML handling.
- Modified serialization options in test classes (`JsonFormatTests.cs`, `JsonReaderTests.cs`, `JsonWriterTests.cs`, `XMLFormatTests.cs`, `XMLReaderTests.cs`) from `JsonSerializerOptions` to `JsonSerializerSettings`.
- Updated namespace and class references in test classes to avoid ambiguity.
- Added new test cases in `XMLFormatTests.cs` and `XMLReaderTests.cs` for enhanced coverage.
- Revised `StructuredObject.cs` methods for string conversion and content retrieval to utilize `Newtonsoft.Json` methods.
- Introduced a `ToByteArray` extension method in `InternalExtensionMethods.cs` for efficient string to byte array conversion.
- Overhauled core format classes (`JsonFormat.cs`, `JsonReader.cs`, `JsonWriter.cs`, `XMLFormat.cs`, `XMLReader.cs`, `XMLWriter.cs`) to adopt `Newtonsoft.Json` for all serialization and deserialization tasks.
- Added a `CleanUpReturnValue` method in `XMLReader.cs` for cleaner deserialized data.
- Updated `XMLWriter.cs` to convert structured objects to XML strings using an approach involving `Newtonsoft.Json`.

These changes leverage `Newtonsoft.Json`'s flexibility and features for improved JSON and XML processing capabilities.

1187 of 1494 branches covered (79.45%)

Branch coverage included in aggregate %.

1509 of 1739 relevant lines covered (86.77%)

24709.24 hits per line

Source Files on job 10017337279.1
  • Tree
  • List 0
  • Changed 29
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 10017337279
  • d5b87e94 on github
  • Prev Job for on main (#9933135425.1)
  • Next Job for on main (#10017460498.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc