(t *testing.T)
| 223 | } |
| 224 | |
| 225 | func mustGeneratePrivateKey(t *testing.T) string { |
| 226 | t.Helper() |
| 227 | privateKey, _, err := GenerateKeyPair() |
| 228 | if err != nil { |
| 229 | t.Fatalf("failed to generate private key: %v", err) |
| 230 | } |
| 231 | return privateKey |
| 232 | } |
| 233 | |
| 234 | func buildWGUser(email, publicKey, peerIP, iface string, includeInterface bool) *common.User { |
| 235 | return buildWGUserWithPeerIPs(email, publicKey, []string{peerIP}, iface, includeInterface) |
no test coverage detected