add convenience method to pull params from config

This commit is contained in:
Joel Wetzell
2026-03-01 14:57:19 -06:00
parent 183182e6cd
commit c298f63ffc
69 changed files with 591 additions and 1081 deletions

View File

@@ -46,7 +46,7 @@ func TestBadUDPMulticast(t *testing.T) {
params: map[string]any{
"ip": "localhost",
},
errorString: "net.udp.multicast requires a port parameter",
errorString: "net.udp.multicast port error: not found",
},
{
name: "non-number port param",
@@ -54,14 +54,14 @@ func TestBadUDPMulticast(t *testing.T) {
"ip": "localhost",
"port": "8000",
},
errorString: "net.udp.multicast port must be a number",
errorString: "net.udp.multicast port error: not a number",
},
{
name: "no ip param",
params: map[string]any{
"port": 8000.0,
},
errorString: "net.udp.multicast requires an ip parameter",
errorString: "net.udp.multicast ip error: not found",
},
{
name: "non-string ip param",
@@ -69,7 +69,7 @@ func TestBadUDPMulticast(t *testing.T) {
"ip": 123,
"port": 8000.0,
},
errorString: "net.udp.multicast ip must be a string",
errorString: "net.udp.multicast ip error: not a string",
},
{
name: "invalid addr",