MCPcopy
hub / github.com/docker/docker-agent / TestResolve_URLReference

Function TestResolve_URLReference

pkg/config/sources_test.go:651–658  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

649}
650
651func TestResolve_URLReference(t *testing.T) {
652 t.Parallel()
653
654 source, err := Resolve("https://example.com/agent.yaml", nil)
655 require.NoError(t, err)
656 assert.Equal(t, "https://example.com/agent.yaml", source.Name())
657 assert.Empty(t, source.ParentDir())
658}
659
660func TestResolveSources_URLReference(t *testing.T) {
661 t.Parallel()

Callers

nothing calls this directly

Calls 3

ResolveFunction · 0.70
NameMethod · 0.65
ParentDirMethod · 0.65

Tested by

no test coverage detected