feat: process attachments through durable versioned jobs

This commit is contained in:
Vladislav Agapov
2026-10-29 16:56:06 +03:00
parent 276dbdad8a
commit e35c8f0b75
235 changed files with 17028 additions and 44 deletions
@@ -0,0 +1,39 @@
package production
import (
"testing"
"gitea.privcloud.tech/vlad_marlo/mtusi2026lab5/internal/cursor"
)
// TestService_New rejects each missing dependency separately.
func TestService_New(t *testing.T) {
t.Run("Negative: missing store", func(t *testing.T) {
// Arrange.
codec, err := cursor.New()
if err != nil {
t.Fatal(err)
}
// Act.
svc, err := New(nil, codec)
// Assert.
if err == nil || svc != nil {
t.Fatalf("service=%v, error=%v", svc, err)
}
})
t.Run("Negative: missing codec", func(t *testing.T) {
// Arrange.
repo := newStoreStub(t)
// Act.
svc, err := New(repo, nil)
// Assert.
if err == nil || svc != nil {
t.Fatalf("service=%v, error=%v", svc, err)
}
})
}