MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / loadScore

Function loadScore

packages/alphatab/test/exporter/AlphaTexExporter.test.ts:10–17  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

8import { TestPlatform } from 'test/TestPlatform';
9describe('AlphaTexExporterTest', () => {
10 async function loadScore(name: string): Promise<Score | null> {
11 const data = await TestPlatform.loadFile(`test-data/${name}`);
12 try {
13 return ScoreLoader.loadScoreFromBytes(data);
14 } catch {
15 return null;
16 }
17 }
18
19 function exportAlphaTex(score: Score, settings: Settings | null = null): string {
20 return new AlphaTexExporter().exportToString(score, settings);

Callers 2

testRoundTripEqualFunction · 0.70

Calls 2

loadScoreFromBytesMethod · 0.80
loadFileMethod · 0.45

Tested by

no test coverage detected