MCPcopy
hub / github.com/windtf/wireproxy / loadIniConfig

Function loadIniConfig

config_test.go:8–16  ·  view source on GitHub ↗
(config string)

Source from the content-addressed store, hash-verified

6)
7
8func 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
18func TestWireguardConfWithoutSubnet(t *testing.T) {
19 const config = `

Calls

no outgoing calls

Tested by

no test coverage detected