(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func TestNewWireGuardConfigInvalidJSON(t *testing.T) { |
| 104 | configJSON := `{invalid json}` |
| 105 | |
| 106 | _, err := NewConfig(configJSON) |
| 107 | if err == nil { |
| 108 | t.Fatal("Expected error for invalid JSON") |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | func TestGenerateKeyPair(t *testing.T) { |
| 113 | privKey, pubKey, err := GenerateKeyPair() |
nothing calls this directly
no test coverage detected