(config string)
| 6 | ) |
| 7 | |
| 8 | func loadIniConfig(config string) (*ini.File, error) { |
| 9 | iniOpt := ini.LoadOptions{ |
| 10 | Insensitive: true, |
| 11 | AllowShadows: true, |
| 12 | AllowNonUniqueSections: true, |
| 13 | } |
| 14 | |
| 15 | return ini.LoadSources(iniOpt, []byte(config)) |
| 16 | } |
| 17 | |
| 18 | func TestWireguardConfWithoutSubnet(t *testing.T) { |
| 19 | const config = ` |
no outgoing calls
no test coverage detected