Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions core/http/endpoints/mcp/localai_assistant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,35 @@
return []localaitools.RouterDecision{}, nil
}

func (stubClient) ListScheduling(_ context.Context) ([]localaitools.ModelSchedulingConfig, error) {
return []localaitools.ModelSchedulingConfig{}, nil
}

func (stubClient) GetScheduling(_ context.Context, _ string) (*localaitools.ModelSchedulingConfig, error) {
return &localaitools.ModelSchedulingConfig{}, nil
}

func (stubClient) SetScheduling(_ context.Context, _ localaitools.SetSchedulingRequest) (*localaitools.ModelSchedulingConfig, error) {
return &localaitools.ModelSchedulingConfig{}, nil
}

func (stubClient) DeleteScheduling(_ context.Context, _ string) error {
return nil
}

var _ = Describe("LocalAIAssistantHolder", func() {

Check failure on line 157 in core/http/endpoints/mcp/localai_assistant_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

method stubClient.ListScheduling already declared at core/http/endpoints/mcp/localai_assistant_test.go:87:19
var ctx context.Context

BeforeEach(func() {
ctx = context.Background()

Check failure on line 161 in core/http/endpoints/mcp/localai_assistant_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

method stubClient.GetScheduling already declared at core/http/endpoints/mcp/localai_assistant_test.go:91:19
})

It("Initialize wires the in-memory server, exposes tools, and dispatches", func() {
h := NewLocalAIAssistantHolder()

Check failure on line 165 in core/http/endpoints/mcp/localai_assistant_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

method stubClient.SetScheduling already declared at core/http/endpoints/mcp/localai_assistant_test.go:95:19
Expect(h.Initialize(ctx, stubClient{}, localaitools.Options{})).To(Succeed())
Expect(h.HasTools()).To(BeTrue())
Expect(h.SystemPrompt()).ToNot(BeEmpty())

Check failure on line 169 in core/http/endpoints/mcp/localai_assistant_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

method stubClient.DeleteScheduling already declared at core/http/endpoints/mcp/localai_assistant_test.go:99:19 (typecheck)
exec := h.Executor()
Expect(exec.HasTools()).To(BeTrue())

Expand Down
Loading