MCPcopy
hub / github.com/containerd/containerd / TestDistributionSourceLabelKey

Function TestDistributionSourceLabelKey

core/remotes/docker/handler_test.go:72–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestDistributionSourceLabelKey(t *testing.T) {
73 expected := labels.LabelDistributionSource + ".testsource"
74 if got := distributionSourceLabelKey("testsource"); !reflect.DeepEqual(got, expected) {
75 t.Fatalf("expected %v, but got %v", expected, got)
76 }
77}
78
79func TestCommonPrefixComponents(t *testing.T) {
80 for _, tc := range []struct {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…