package detect import "testing" func TestDetectNoPanic(t *testing.T) { cards := Detect() // May be empty in CI — just verify no panic _ = cards } func TestHasMediaExtension(t *testing.T) { cases := map[string]bool{ "clip.mp4": true, "photo.JPG": true, "photo.raw": true, "file.txt": false, "archive.zip": false, } for path, want := range cases { got := HasMediaExtension(path) if got != want { t.Errorf("HasMediaExtension(%q) = %v, want %v", path, got, want) } } }