static pattern frame cache

This commit is contained in:
Dmitry Sergeev
2026-09-17 22:59:42 +03:00
parent 4d9485220a
commit f5df9506ce
3 changed files with 47 additions and 8 deletions
+8 -1
View File
@@ -1,6 +1,9 @@
package video
import "testing"
import (
"strings"
"testing"
)
func TestPatterns(t *testing.T) {
got := Patterns()
@@ -43,5 +46,9 @@ func TestPatternRegistryKeysMatchNames(t *testing.T) {
if pattern.kernelSource == "" {
t.Errorf("pattern %q has empty kernel source", name)
}
wantDynamic := strings.HasSuffix(name, "-move")
if pattern.dynamic != wantDynamic {
t.Errorf("pattern %q dynamic = %t, want %t", name, pattern.dynamic, wantDynamic)
}
}
}