< Summary

Information
Class: MusicTheory.Theory.Pitch.SpelledPitch
Assembly: MusicTheory
File(s): /home/runner/work/MusicTheory/MusicTheory/Theory/Pitch/Letter.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 10
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
get_Letter()100%11100%
ToString()100%11100%

File(s)

/home/runner/work/MusicTheory/MusicTheory/Theory/Pitch/Letter.cs

#LineLine coverage
 1namespace MusicTheory.Theory.Pitch
 2{
 3    // 綴り
 4    public enum Letter { C, D, E, F, G, A, B }
 5
 756    public readonly record struct SpelledPitch(Letter Letter, Accidental Acc)
 7    {
 28        public override string ToString() => $"{Letter}{Acc}";
 9    }
 10}

Methods/Properties

get_Letter()
ToString()