| 1 | readDNSRecord is undefined. Use correct function name in tests. |
| 2 | |
| 3 | |
| 4 | |
| 5 | func TestReadDNSRecord(t *testing.T) { |
| 6 | |
| 7 | for _, c := range cases { |
| 8 | t.Run(c.value, func(t *testing.T) { |
| 9 | - id, err := readDNSRecord(c.value) |
| 10 | + id, err := ReadDNSRecord(c.value) |
| 11 | if c.fail { |
| 12 | if err == nil { |
| 13 | t.Errorf("expected failure for %v, but got with id=%v", c.value, id) |