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

MeltyPlayer / MeltyTool / 17993985084

25 Sep 2025 01:17AM UTC coverage: 39.931%. Remained the same
17993985084

push

github

MeltyPlayer
Used concrete types throughout solution.

5826 of 16491 branches covered (35.33%)

Branch coverage included in aggregate %.

44 of 85 new or added lines in 38 files covered. (51.76%)

1 existing line in 1 file now uncovered.

24549 of 59577 relevant lines covered (41.21%)

71883.78 hits per line

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

0.0
/FinModelUtility/Fin/Fin/src/schema/data/SwitchMagicStringUInt32SizedSection.cs
1
using System;
2

3
using schema.binary;
4
using schema.binary.attributes;
5

6
namespace fin.schema.data;
7

8
/// <summary>
9
///   Schema class that implements a uint32-sized section without needing to
10
///   worry about passing in an instance of the contained data. This should
11
///   be adequate for most cases, except when the data class needs to access
12
///   parent data.
13
/// </summary>
14
[BinarySchema]
15
public partial class SwitchMagicStringUInt32SizedSection<T>(
×
16
    int magicLength,
×
17
    Func<string, T> createTypeHandler)
×
18
    : IMagicSection<T>
19
    where T : IBinaryConvertible {
20
  [Skip]
21
  private readonly int magicLength_ = magicLength;
×
22

23
  [Skip]
24
  private readonly Func<string, T> createTypeHandler_ = createTypeHandler;
×
25

26
  private readonly PassThruStringMagicUInt32SizedSection<T> impl_ =
×
NEW
27
      new(null, default!);
×
28

29
  [Skip]
30
  public int TweakReadSize {
31
    get => this.impl_.TweakReadSize;
×
32
    set => this.impl_.TweakReadSize = value;
×
33
  }
34

35
  [Skip]
36
  public string Magic => this.impl_.Magic;
×
37

38
  [Skip]
39
  public T Data => this.impl_.Data;
×
40

41
  public void Read(IBinaryReader br) {
×
42
    var baseOffset = br.Position;
×
43

44
    var magic = br.ReadString(this.magicLength_);
×
45
    this.impl_.Magic = magic;
×
46
    this.impl_.Data = this.createTypeHandler_(magic);
×
47

48
    br.Position = baseOffset;
×
49
    this.impl_.Read(br);
×
50
  }
×
51
}
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