(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestPathStore_GetPaths_DeduplicatedSorted(t *testing.T) { |
| 51 | t.Parallel() |
| 52 | |
| 53 | ps := agentgit.NewPathStore() |
| 54 | chatID := uuid.New() |
| 55 | |
| 56 | ps.AddPaths([]uuid.UUID{chatID}, []string{"/z", "/a", "/m", "/a", "/z"}) |
| 57 | ps.AddPaths([]uuid.UUID{chatID}, []string{"/a", "/b"}) |
| 58 | |
| 59 | got := ps.GetPaths(chatID) |
| 60 | require.Equal(t, []string{"/a", "/b", "/m", "/z"}, got) |
| 61 | } |
| 62 | |
| 63 | func TestPathStore_Subscribe_ReceivesNotification(t *testing.T) { |
| 64 | t.Parallel() |
nothing calls this directly
no test coverage detected