(t *testing.T, wg *WireGuard)
| 174 | } |
| 175 | |
| 176 | func wireGuardServerPublicKey(t *testing.T, wg *WireGuard) string { |
| 177 | t.Helper() |
| 178 | privateKey, err := wgtypes.ParseKey(wg.config.PrivateKey) |
| 179 | if err != nil { |
| 180 | t.Fatalf("failed to parse wireguard private key: %v", err) |
| 181 | } |
| 182 | return privateKey.PublicKey().String() |
| 183 | } |
| 184 | |
| 185 | func startWGHTTPServerAtIP(t *testing.T, serverIP string) string { |
| 186 | t.Helper() |
no test coverage detected