MCPcopy Index your code
hub / github.com/docker/docker-agent / TestURLSource_Read_ConnectionError

Function TestURLSource_Read_ConnectionError

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

Source from the content-addressed store, hash-verified

306}
307
308func TestURLSource_Read_ConnectionError(t *testing.T) {
309 t.Parallel()
310
311 _, err := newURLSourceForTest("http://invalid.invalid/config.yaml", nil).Read(t.Context())
312 require.Error(t, err)
313}
314
315func TestURLSource_Read_CachesContent(t *testing.T) {
316 t.Parallel()

Callers

nothing calls this directly

Calls 4

newURLSourceForTestFunction · 0.85
ContextMethod · 0.80
ReadMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected