(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestUserProfile_RecordCommand(t *testing.T) { |
| 36 | dir := t.TempDir() |
| 37 | ps := NewUserProfileStore(dir, testLogger()) |
| 38 | |
| 39 | ps.RecordCommand("/memory") |
| 40 | ps.RecordCommand("/memory") |
| 41 | ps.RecordCommand("/compact") |
| 42 | |
| 43 | p := ps.Get() |
| 44 | if p.TopCommands["/memory"] != 2 { |
| 45 | t.Errorf("expected /memory count 2, got %d", p.TopCommands["/memory"]) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func TestUserProfile_Persistence(t *testing.T) { |
| 50 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected