Files
flatrender/services/render/internal/aep/parse_dump_test.go
T

29 lines
704 B
Go
Raw Normal View History

package aep
import (
"os"
"testing"
)
// TestDumpRealAEP is a manual harness: set FR_TEST_AEP to a .aep path to print the
// comps + layer names the parser extracts. Skipped in normal CI runs.
func TestDumpRealAEP(t *testing.T) {
path := os.Getenv("FR_TEST_AEP")
if path == "" {
t.Skip("set FR_TEST_AEP to a .aep path")
}
data, err := os.ReadFile(path)
if err != nil {
t.Fatal(err)
}
comps, err := ParseComps(data)
if err != nil {
t.Fatal(err)
}
names, _ := ParseNames(data)
t.Logf("parsed %d comps, %d names from %s (%d bytes)", len(comps), len(names), path, len(data))
for _, c := range comps {
t.Logf("COMP %q dur=%.2fs layers=%d", c.Name, c.DurationSec, len(c.Layers))
}
}