(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestSessionAdapter_SearchNoMatch(t *testing.T) { |
| 50 | sm := newTestSessionManager(t) |
| 51 | a := &sessionPluginAdapter{cli: &ChatCLI{sessionManager: sm, logger: zap.NewNop()}} |
| 52 | out, err := a.Search(context.Background(), "nothing here", 3) |
| 53 | if err != nil { |
| 54 | t.Fatalf("Search: %v", err) |
| 55 | } |
| 56 | if !strings.Contains(strings.ToLower(out), "no saved session") && !strings.Contains(out, "Nenhuma") { |
| 57 | t.Fatalf("expected no-match message, got %q", out) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func TestSessionAdapter_List(t *testing.T) { |
| 62 | sm := newTestSessionManager(t) |
nothing calls this directly
no test coverage detected