Files

16 lines
555 B
Go
Raw Permalink Normal View History

2026-05-22 20:26:11 -04:00
package models
import "testing"
func TestMarkerSourcePriority(t *testing.T) {
if MarkerSourcePriority(MarkerSourceOnline) <= MarkerSourcePriority(MarkerSourceScanner) {
t.Fatal("online marker sources must outrank scanner markers")
}
if MarkerSourcePriority(MarkerSourceScanner) >= MarkerSourcePriority(MarkerSourceOnline) {
t.Fatal("scanner markers must not outrank online marker sources")
}
if MarkerSourcePriority(MarkerSourceManual) <= MarkerSourcePriority(MarkerSourceOnline) {
t.Fatal("manual markers must remain highest priority")
}
}