Deterministic test keypair (never the global identity store).
()
| 665 | |
| 666 | /// Deterministic test keypair (never the global identity store). |
| 667 | fn test_keypair() -> KeyPair { |
| 668 | let mut secret = [0u8; 32]; |
| 669 | for (index, byte) in secret.iter_mut().enumerate() { |
| 670 | *byte = (index * 7 + 11) as u8; |
| 671 | } |
| 672 | KeyPair::from_secret_key(SecretKey::from_bytes(&secret)) |
| 673 | } |
| 674 | |
| 675 | fn oid(hex: &str) -> GitOid { |
| 676 | GitOid::from_hex(hex).expect("valid oid") |
no test coverage detected