()
| 24 | ) |
| 25 | |
| 26 | func (a TestSrvAction) String() string { |
| 27 | switch a { |
| 28 | case TestSrvTimeout: |
| 29 | return "SrvTimeout" |
| 30 | case TestSrvServfail: |
| 31 | return "SrvServfail" |
| 32 | case TestSrvNoAddr: |
| 33 | return "SrvNoAddr" |
| 34 | case TestSrvOk: |
| 35 | return "SrvOk" |
| 36 | default: |
| 37 | panic("wtf action") |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | type IPAddrTestServer struct { |
| 42 | udpServ dns.Server |
no outgoing calls
no test coverage detected