(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestSaveCheckpointMaxLimit(t *testing.T) { |
| 40 | cli := &ChatCLI{ |
| 41 | history: []models.Message{{Role: "user", Content: "test"}}, |
| 42 | } |
| 43 | |
| 44 | for i := 0; i < maxCheckpoints+5; i++ { |
| 45 | cli.saveCheckpoint() |
| 46 | } |
| 47 | |
| 48 | if len(cli.checkpoints) != maxCheckpoints { |
| 49 | t.Errorf("expected max %d checkpoints, got %d", maxCheckpoints, len(cli.checkpoints)) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestSaveCheckpointLabelTruncation(t *testing.T) { |
| 54 | longMsg := "" |
nothing calls this directly
no test coverage detected