MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestRunSlugBasic

Function TestRunSlugBasic

internal/app/run_test.go:14–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func 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
27func TestRunSlugMinuteCollision(t *testing.T) {
28 db := openTempDB(t)

Callers

nothing calls this directly

Calls 2

generateRunSlugFunction · 0.85
openTempDBFunction · 0.70

Tested by

no test coverage detected