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

Function TestResolveSources

pkg/config/resolve_test.go:283–291  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

281}
282
283func TestResolveSources(t *testing.T) {
284 t.Parallel()
285
286 sources, err := ResolveSources("./testdata/v1.yaml", nil)
287 require.NoError(t, err)
288
289 assert.Len(t, sources, 1)
290 require.Contains(t, sources, "v1")
291}
292
293func TestResolve_DefaultAliasOverride(t *testing.T) {
294 home := t.TempDir()

Callers

nothing calls this directly

Calls 2

ResolveSourcesFunction · 0.85
LenMethod · 0.65

Tested by

no test coverage detected