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

davewalker5 / ADS-B-BaseStationReader / 17804934237

17 Sep 2025 04:40PM UTC coverage: 89.917% (-3.8%) from 93.692%
17804934237

push

github

web-flow
Merge pull request #41 from davewalker5/filtered-tracking

Filtered tracking

381 of 461 branches covered (82.65%)

Branch coverage included in aggregate %.

1465 of 1592 new or added lines in 52 files covered. (92.02%)

1465 of 1592 relevant lines covered (92.02%)

38.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/BaseStationReader.BusinessLogic/Tracking/TrackingRuleWriter.cs
1
using System.Text.Json;
2
using BaseStationReader.Entities.Interfaces;
3
using BaseStationReader.Entities.Tracking;
4

5
namespace BaseStationReader.BusinessLogic.Tracking
6
{
7
    public class TrackingRuleReaderWriter : ITrackingRuleReaderWriter
8
    {
NEW
9
        private readonly JsonSerializerOptions options = new()
×
NEW
10
        {
×
NEW
11
            WriteIndented = true
×
NEW
12
        };
×
13

14
        public IEnumerable<TrackingRule> Read(string filePath)
NEW
15
        {
×
NEW
16
            var json = File.ReadAllText(filePath);
×
NEW
17
            var rules = JsonSerializer.Deserialize<List<TrackingRule>>(json);
×
NEW
18
            return rules;
×
NEW
19
        }
×
20

21
        public void Write(IEnumerable<TrackingRule> rules, string filePath)
NEW
22
        {
×
NEW
23
            var json = JsonSerializer.Serialize(rules, options);
×
NEW
24
            File.WriteAllText(filePath, json);
×
NEW
25
        }
×
26
    }
27
}
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