MCPcopy
hub / github.com/yusing/godoxy / TestExplicitExclude

Function TestExplicitExclude

internal/route/provider/docker_test.go:460–471  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

458}
459
460func TestExplicitExclude(t *testing.T) {
461 r, ok := makeRoutes(&container.Summary{
462 Names: dummyNames,
463 Labels: map[string]string{
464 D.LabelAliases: "a",
465 D.LabelExclude: "true",
466 "proxy.a.no_tls_verify": "true",
467 },
468 }, "")["a"]
469 expect.True(t, ok)
470 expect.True(t, r.ShouldExclude())
471}
472
473func TestImplicitExcludeDatabase(t *testing.T) {
474 t.Run("mount path detection", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

makeRoutesFunction · 0.85
ShouldExcludeMethod · 0.65

Tested by

no test coverage detected