feat: field-sync-gui MVP — Wails GUI ingest SD→local+S3 (4 slots //)
This commit is contained in:
25
internal/detect/detect_test.go
Normal file
25
internal/detect/detect_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user