(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestSessionFilePath_ValidID(t *testing.T) { |
| 22 | tmpHome := t.TempDir() |
| 23 | t.Setenv("HOME", tmpHome) |
| 24 | |
| 25 | path, err := SessionFilePath("/some/repo", "abc-123") |
| 26 | if err != nil { |
| 27 | t.Fatalf("unexpected error: %v", err) |
| 28 | } |
| 29 | |
| 30 | expectedSuffix := filepath.Join("test-sessions", encodeRepoPath("/some/repo"), "abc-123.jsonl") |
| 31 | if !contains(path, expectedSuffix) { |
| 32 | t.Errorf("path %q does not contain expected suffix %q", path, expectedSuffix) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // --- ResumeState.CompletedCount --- |
| 37 |
nothing calls this directly
no test coverage detected