Merge pull request #4135 from hs0210/work
Add unit test for func in remotes/docker/handler.go
This commit is contained in:
commit
e852da5855
@ -65,3 +65,10 @@ func TestAppendDistributionLabel(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDistributionSourceLabelKey(t *testing.T) {
|
||||
expected := "containerd.io/distribution.source.testsource"
|
||||
if got := distributionSourceLabelKey("testsource"); !reflect.DeepEqual(got, expected) {
|
||||
t.Fatalf("expected %v, but got %v", expected, got)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user