Files
ai-workflow/inbox/internal/domain/lane/runtime_names_test.go
T

23 lines
719 B
Go

package lane
import "testing"
func TestRuntimeNamesIncludeTopicSuffix(t *testing.T) {
topicID := "topic-20260317T030141Z-05c4bd6c9a45"
branch := DefaultBranchName("todo", topicID, "frontend-app")
if branch != "lane/todo/frontend-app-05c4bd6c9a45" {
t.Fatalf("unexpected branch name: %s", branch)
}
worktree := DefaultWorktreePath("/tmp/inbox-worktrees/todo", "todo", topicID, "frontend-app")
if worktree != "/tmp/inbox-worktrees/todo--frontend-app--05c4bd6c9a45" {
t.Fatalf("unexpected worktree path: %s", worktree)
}
container := DefaultContainerName("todo", topicID, "frontend-app")
if container != "lane-todo-frontend-app-05c4bd6c9a45" {
t.Fatalf("unexpected container name: %s", container)
}
}