File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ func IsHostname(target string) bool {
215
215
return len (r ) > 0
216
216
}
217
217
218
- // IsHostnameNoDnsResolution returns true if the target is not an IP.
219
- func IsHostnameNoDnsResolution (target string ) bool {
218
+ // IsHostnameNoDNSResolution returns true if the target is not an IP.
219
+ func IsHostnameNoDNSResolution (target string ) bool {
220
220
// If the target is an IP can not be a hostname.
221
221
if IsIP (target ) {
222
222
return false
Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ func TestIsHostname(t *testing.T) {
628
628
}
629
629
}
630
630
631
- func TestIsHostnameNoDnsResolution (t * testing.T ) {
631
+ func TestIsHostnameNoDNSResolution (t * testing.T ) {
632
632
tests := []struct {
633
633
name string
634
634
target string
@@ -659,7 +659,7 @@ func TestIsHostnameNoDnsResolution(t *testing.T) {
659
659
for _ , tt := range tests {
660
660
tt := tt
661
661
t .Run (tt .name , func (t * testing.T ) {
662
- got := IsHostnameNoDnsResolution (tt .target )
662
+ got := IsHostnameNoDNSResolution (tt .target )
663
663
if got != tt .want {
664
664
t .Errorf ("got %v, want %v" , got , tt .want )
665
665
}
You can’t perform that action at this time.
0 commit comments