(t *testing.T)
| 272 | } |
| 273 | |
| 274 | func TestRename(t *testing.T) { |
| 275 | c := copier{ |
| 276 | srcRepo: name.MustParseReference("registry.example.com/foo").Context(), |
| 277 | dstRepo: name.MustParseReference("registry.example.com/bar").Context(), |
| 278 | } |
| 279 | |
| 280 | got, err := c.rename(name.MustParseReference("registry.example.com/foo/sub/repo").Context()) |
| 281 | if err != nil { |
| 282 | t.Fatalf("unexpected err: %v", err) |
| 283 | } |
| 284 | want := name.MustParseReference("registry.example.com/bar/sub/repo").Context() |
| 285 | |
| 286 | if want.String() != got.String() { |
| 287 | t.Errorf("%s != %s", want, got) |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | func TestSubtractStringLists(t *testing.T) { |
| 292 | cases := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…