(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestRunSlugBasic(t *testing.T) { |
| 15 | db := openTempDB(t) |
| 16 | now := time.Date(2026, 4, 30, 10, 30, 45, 0, time.UTC) |
| 17 | got, err := generateRunSlug(db, "triage-cs", now) |
| 18 | if err != nil { |
| 19 | t.Fatal(err) |
| 20 | } |
| 21 | want := "triage-cs--2026-04-30-10-30" |
| 22 | if got != want { |
| 23 | t.Errorf("got %q, want %q", got, want) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestRunSlugMinuteCollision(t *testing.T) { |
| 28 | db := openTempDB(t) |
nothing calls this directly
no test coverage detected