static pattern frame cache
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user