< Summary

Information
Class: Gravitas.Diagnostics.GravitasMixedResponseIslandDiagnosticView
Assembly: Gravitas
File(s): /home/runner/work/Gravitas/Gravitas/src/Gravitas/Diagnostics/Events/Contacts/GravitasMixedResponseIslandDiagnosticView.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 37
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Frame()100%11100%
get_Sequence()100%11100%
get_RootKey()100%11100%
get_ConstraintCount()100%11100%
get_IterationCount()100%11100%
get_ReachedIterationLimit()100%11100%

File(s)

/home/runner/work/Gravitas/Gravitas/src/Gravitas/Diagnostics/Events/Contacts/GravitasMixedResponseIslandDiagnosticView.cs

#LineLine coverage
 1//=======================================================================
 2// GravitasMixedResponseIslandDiagnosticView.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2026-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8namespace Gravitas.Diagnostics;
 9
 10/// <summary>
 11/// Typed read-only view over a mixed 3D/2D response-island diagnostic event.
 12/// </summary>
 13public readonly struct GravitasMixedResponseIslandDiagnosticView
 14{
 715    internal GravitasMixedResponseIslandDiagnosticView(GravitasDiagnosticEvent diagnosticEvent) => Event = diagnosticEve
 16
 17    /// <summary>Gets the underlying diagnostic event.</summary>
 18    public GravitasDiagnosticEvent Event { get; }
 19
 20    /// <summary>Gets the simulation frame in which the island result was captured.</summary>
 121    public long Frame => Event.Frame;
 22
 23    /// <summary>Gets the event's sequence within its capture buffer.</summary>
 124    public int Sequence => Event.Sequence;
 25
 26    /// <summary>Gets the deterministic root key of the response island.</summary>
 427    public int RootKey => Event.BodyId;
 28
 29    /// <summary>Gets the number of constraints in the island.</summary>
 530    public int ConstraintCount => Event.DataA;
 31
 32    /// <summary>Gets the number of response iterations performed.</summary>
 533    public int IterationCount => Event.DataB;
 34
 35    /// <summary>Gets whether the response reached its iteration limit.</summary>
 236    public bool ReachedIterationLimit => Event.Hit;
 37}