(t *testing.T)
| 223 | } |
| 224 | |
| 225 | func TestWithNetOption(t *testing.T) { |
| 226 | stub := newStubNet(t) |
| 227 | |
| 228 | agent, err := NewAgentWithOptions(WithNet(stub)) |
| 229 | require.NoError(t, err) |
| 230 | defer func() { require.NoError(t, agent.Close()) }() |
| 231 | |
| 232 | assert.Equal(t, stub, agent.net) |
| 233 | } |
| 234 | |
| 235 | func TestWithMulticastDNSOptions(t *testing.T) { |
| 236 | agent, err := NewAgentWithOptions( |
nothing calls this directly
no test coverage detected
searching dependent graphs…