ratatoskr-go: стартовый каркас (Go-бинарь, CI, structure)
All checks were successful
build-test / build (push) Successful in 47s
All checks were successful
build-test / build (push) Successful in 47s
This commit is contained in:
15
internal/app/app_test.go
Normal file
15
internal/app/app_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package app
|
||||
|
||||
import "testing"
|
||||
|
||||
// Контракт: process_turn (после внедрения) должен возвращать 3 значения.
|
||||
// Здесь — placeholder-проверка, что composition root собирается без сбоев.
|
||||
func TestNew(t *testing.T) {
|
||||
a, err := New("")
|
||||
if err != nil {
|
||||
t.Fatalf("New() err = %v", err)
|
||||
}
|
||||
if a.Config.IssueRepo == "" {
|
||||
t.Fatal("IssueRepo пуст — каркас не инициализирован")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user