MCPcopy Create free account
hub / github.com/docker/docker-agent / TestApp_ResolveSkillCommand_NoLocalRuntime

Function TestApp_ResolveSkillCommand_NoLocalRuntime

pkg/app/app_test.go:322–334  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

320}
321
322func TestApp_ResolveSkillCommand_NoLocalRuntime(t *testing.T) {
323 t.Parallel()
324
325 ctx := t.Context()
326 rt := &mockRuntime{}
327 sess := session.New()
328 app := New(t.Context(), rt, sess)
329
330 // mockRuntime is not a LocalRuntime, so no skills should be returned
331 resolved, err := app.ResolveSkillCommand(ctx, "/some-skill")
332 require.NoError(t, err)
333 assert.Empty(t, resolved)
334}
335
336func TestApp_ResolveSkillCommand_NotSlashCommand(t *testing.T) {
337 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
ContextMethod · 0.80
ResolveSkillCommandMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected