diff options
author | Nick White <git@njw.name> | 2024-08-22 15:57:25 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2024-08-22 15:57:25 +0100 |
commit | 340878c65a8679506758557ca7f1962ffe22b39c (patch) | |
tree | 846df92426704904fb7f675798371138dd8e41b2 /internal/pipeline/put_test.go | |
parent | 6c56a6884e78a50982a01acb9d8da4e7f28287a7 (diff) |
Don't skip binarisation for folders full of images, as that's nobody's workflow anymore
Diffstat (limited to 'internal/pipeline/put_test.go')
-rw-r--r-- | internal/pipeline/put_test.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/pipeline/put_test.go b/internal/pipeline/put_test.go index 66fa0c2..6289903 100644 --- a/internal/pipeline/put_test.go +++ b/internal/pipeline/put_test.go @@ -52,29 +52,6 @@ func Test_CheckImages(t *testing.T) { } } -func Test_DetectQueueType(t *testing.T) { - conn := &bookpipeline.LocalConn{} - - cases := []struct { - dir string - qid string - }{ - {"testdata/mostlypng", conn.WipeQueueId()}, - {"testdata/mostlyjpg", conn.PreQueueId()}, - {"testdata/equalpngandjpg", conn.PreQueueId()}, - {"testdata/nonexistent", conn.PreQueueId()}, - } - - for _, c := range cases { - t.Run(c.dir, func(t *testing.T) { - qid := DetectQueueType(c.dir, conn) - if qid != c.qid { - t.Fatalf("Error, expected qid %v, got qid %v", qid, c.qid) - } - }) - } -} - func Test_UploadImages(t *testing.T) { var slog StrLog vlog := log.New(&slog, "", 0) |