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

Function loadLyricsTemplateFile

packages/alphatab/test/model/Lyrics.test.ts:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { TestPlatform } from 'test/TestPlatform';
8describe('LyricsTests', () => {
9 async function loadLyricsTemplateFile(): Promise<Score> {
10 const path: string = 'test-data/lyrics/template.gpx';
11 const data = await TestPlatform.loadFile(path);
12 const buffer: ByteBuffer = ByteBuffer.fromBuffer(data);
13 const importer: GpxImporter = new GpxImporter();
14 importer.init(buffer, new Settings());
15 return importer.readScore();
16 }
17
18 function testLyrics(text: string, chunks: string[]): void {
19 const lyrics: Lyrics = new Lyrics();

Callers 1

Lyrics.test.tsFile · 0.85

Calls 4

readScoreMethod · 0.95
fromBufferMethod · 0.80
loadFileMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected