(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestHashAlgorithm_StringRoundtrip(t *testing.T) { |
| 14 | for algo := range Algorithms() { |
| 15 | if algo == Ed25519 || algo == None { |
| 16 | continue |
| 17 | } |
| 18 | |
| 19 | str := algo.String() |
| 20 | hash1 := algo.CryptoHash() |
| 21 | hash2, err := fingerprint.HashFromString(str) |
| 22 | assert.NoError(t, err) |
| 23 | assert.Equal(t, hash1, hash2) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestExtractHashFromPSS(t *testing.T) { |
| 28 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…