(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func TestCreateTarget(t *testing.T) { |
| 229 | notaryRepo, err := client.NewFileCachedRepository(t.TempDir(), "gun", "https://localhost", nil, testPassRetriever, trustpinning.TrustPinConfig{}) |
| 230 | assert.NilError(t, err) |
| 231 | _, err = createTarget(notaryRepo, "") |
| 232 | assert.Error(t, err, "no tag specified") |
| 233 | _, err = createTarget(notaryRepo, "1") |
| 234 | assert.Error(t, err, "client is offline") |
| 235 | } |
| 236 | |
| 237 | func TestGetExistingSignatureInfoForReleasedTag(t *testing.T) { |
| 238 | notaryRepo, err := client.NewFileCachedRepository(t.TempDir(), "gun", "https://localhost", nil, testPassRetriever, trustpinning.TrustPinConfig{}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…